• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making NSBrowser more efficient
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making NSBrowser more efficient


  • Subject: Re: Making NSBrowser more efficient
  • From: Chris Parker <email@hidden>
  • Date: Fri, 12 Nov 2004 12:59:38 -0800


On Nov 12, 2004, at 12: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.

FWIW, I just did a bunch of work in NSDirectoryEnumerator to cut down the cost of using it. Enumerations (especially if all you're interested in are the filenames/paths) are going to be a lot faster. If you'd like to see additional features added to it, please file enhancement requests at http://bugreport.apple.com/


.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.

_______________________________________________
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


References: 
 >Making NSBrowser more efficient (From: Jeremy Dronfield <email@hidden>)
 >Re: Making NSBrowser more efficient (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: app crashes here: [NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
  • Next by Date: Re: Making NSBrowser more efficient
  • Previous by thread: Re: Making NSBrowser more efficient
  • Next by thread: Re: Making NSBrowser more efficient
  • Index(es):
    • Date
    • Thread