mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
e570c3e50a
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
30 lines
574 B
Objective-C
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 |