Re: Making NSBrowser more efficient
Re: Making NSBrowser more efficient
- Subject: Re: Making NSBrowser more efficient
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 12 Nov 2004 21:07:25 +0000
On 12 Nov 2004, at 8:49 pm, M. Uli Kusterer wrote:
At 18:53 Uhr +0000 12.11.2004, Jeremy Dronfield wrote:
I'm using an NSBrowser for file system browsing. The implementation
is essentially just the Simple Browser example code. The problem is
its slooooowwwwness. When selecting a directory with more than a
couple of hundred files in, display slowness becomes painful OMM -
far, far slower than the Finder's column view (which is the obvious
benchmark).
In my app the main bottleneck was NSDirectoryEnumerator. I wrote a
UKDirectoryEnumerator that's noticeably faster than
NSDirectoryEnumerator (mine uses Carbon HFS calls under the hood).
Gimme a few more hours to post a new version that can be used as a
drop-in-replacement for NSDirectoryEnumerator. The one that's
currently up at
http://www.zathras.de/programming/sourcecode.htm
returns absolute pathnames from nextObject, and doesn't return file
labels.
Thanks - that sounds interesting. I'll check it out when you get it
posted.
Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden