Xee (1000)

549 Name: Bryce : 2007-03-20 01:47 ID:byy17Hx1 [Del]

I forgot to mention another change I made to improver performance:

-(void)addEntry:(XeeFileEntry *)entry sort:(BOOL)sort
{

[self lockList];

#if 0

int index=[entries indexOfObject:entry];
if(index!=NSNotFound) { [self unlockListWithUpdates:NO]; return; } // already added

#endif

This code adds another 50 seconds on top of the 327 seconds I quoted above. If there is only one directory loaded then this isn't necessary (as in my case). For other situations I'd recommend either sorting the list before adding to it (so a binary search would be possible), or add things unconditionally, then sort, then scan and look for adjacent items that are duplicated.

This thread has been closed. You cannot post in this thread any longer.