FROM : Jeremy Dronfield
DATE : Fri Nov 12 22:06:18 2004
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
DATE : Fri Nov 12 22:06:18 2004
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
| Related mails | Author | Date |
|---|---|---|
| Jeremy Dronfield | Nov 12, 19:53 | |
| j o a r | Nov 12, 20:53 | |
| M. Uli Kusterer | Nov 12, 21:49 | |
| Chris Parker | Nov 12, 21:59 | |
| Jeremy Dronfield | Nov 12, 22:06 | |
| Jeremy Dronfield | Nov 12, 22:07 |






Cocoa mail archive

