4 Commits

Author SHA1 Message Date
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
Pieter de Bie c3f5d517b3 Graphs: use chars to store line number
This reduces memory cost somewhat (10MB on the git.git repository),
while still keeping the same functionality :) Better would be to
use structs in a c array in the cellinfo, as the NSArray and
NSObject type information together now use more memory.
2008-10-03 18:10:43 +02:00
Pieter de Bie a294d911b0 Grapher: Add colors to lane
This introduces a new object, PBGitLane that keeps track of the current lane.
We used to only need a sha for a lane, but now that more information is
needed, an extra object is in order. PBGitLane keeps a lane index number. This
number is later used to pick a color.
2008-08-28 00:25:33 +02:00
Pieter de Bie 727e42fe1d Refactor and rename graph code 2008-08-27 23:31:38 +02:00