Optimize rev-list parsing

This uses the C fgets() over the weird readLine implementation I found.
It speeds up the rev-parsing significantly: we went from ~4.5 seconds
on the git.git repo to ~0.95 seconds. And that's with the secret new date
parsing!
This commit is contained in:
Pieter de Bie
2008-06-17 15:04:49 +02:00
parent aa3f720129
commit 39797876fe
5 changed files with 1445 additions and 1354 deletions
+1 -3
View File
@@ -224,9 +224,7 @@
{
if (![[aTableColumn identifier] isEqualToString:@"subject"])
return;
NSLog(@"Doing cell at index: %i", rowIndex);
NSNumber* n = [NSNumber numberWithInt:(rowIndex % 2)];
[aCell setCommit:n];