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:06:18 +0000
On 12 Nov 2004, at 7:53 pm, j o a r wrote:
On 2004-11-12, at 19.53, 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).
What is slow? If you want some advice / input, you need to provide
some information from your benchmarks to indicate where the bottleneck
is!
John was not giving advice on how to speed up anything in the message
you quoted. He showed a neat way to implement the data source for a
browser delegate.
I've done as much as I can to clear the bottlenecks inherent in the
Simple Browser data source, but the FSNodeInfo class seems inherently
inefficient, with an excessive degree of recursion in building the data
tree. The only solution will be to completely redesign the class.
Therefore I'm hoping to find a data source implementation of proven
efficiency which I can just drop into my project. John's looked like it
would be worth investigating - not just the data source implementation
itself, but the ClassEnumerator class (for which the code isn't given
in his post).
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