mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 15:30: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
16 lines
244 B
C
16 lines
244 B
C
//
|
|
// PBLine.h
|
|
// GitX
|
|
//
|
|
// Created by Pieter de Bie on 27-08-08.
|
|
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
struct PBGitGraphLine
|
|
{
|
|
int upper : 1;
|
|
int from : 8;
|
|
int to : 8;
|
|
int colorIndex : 8;
|
|
};
|