Re: Case sensitive fileName
Re: Case sensitive fileName
- Subject: Re: Case sensitive fileName
- From: Jens Alfke <email@hidden>
- Date: Wed, 17 Mar 2010 10:23:34 -0700
On Mar 17, 2010, at 9:28 AM, Don Quixote de la Mancha wrote:
I don't think that the OP wanted to iterate through the entire
directory though...
Maybe so, but I don't think there would be any real disadvantage to
doing so.
Performance.
I'm pretty sure that just about any API that can retrieve a
filename from a directory will iterate through the whole directory
anyway.
No; retrieving a file by name is just a B+tree lookup in HFS. Walking
through the directory is a lot more expensive.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden