Files
gitx/PBGraphCellInfo.h
T
Pieter de Bie e570c3e50a Use structs for graph lines
We used to use NSObjects, which was really expensive, because for each commit
as many as 100 graphlines can be created. By preallocating them and not
using NSObjects in general, we gain a massive speedup
2008-11-24 22:54:04 +01:00

30 lines
574 B
Objective-C

//
// PBGraphCellInfo.h
// GitX
//
// Created by Pieter de Bie on 27-08-08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PBGitGraphLine.h"
@interface PBGraphCellInfo : NSObject
{
int position;
struct PBGitGraphLine *lines;
int nLines;
int numColumns;
char sign;
NSArray* refs;
}
@property(readonly) struct PBGitGraphLine *lines;
@property(assign) int nLines;
@property(assign) int position, numColumns;
@property(assign) char sign;
- (id)initWithPosition: (int) p andLines: (struct PBGitGraphLine *) l;
@end