Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
- Subject: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
- From: Ondra Cada <email@hidden>
- Date: Tue, 11 Apr 2006 18:22:56 +0200
Will,
On 11.4.2006, at 18:14, Will Mason wrote:
There's also nothing wrong with using BSD calls: opendir(3), readdir
(3), closedir(3). I'd be willing to bet (without empirical data)
that those are actually the fastest of any of the proposed options.
In pure theory, Carbon should be faster (for it can exploit the fact
its calls are HFS-native, whilst posix has to be at least one level
higher).
In practice it might not be so--I haven't profiled them.
Anyway, myself, I would use the posix level only if truly needed for
portability, but YMMV.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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