• 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: Case sensitive fileName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Case sensitive fileName
      • From: Don Quixote de la Mancha <email@hidden>
References: 
 >Case sensitive fileName (From: "gMail.com" <email@hidden>)
 >Re: Case sensitive fileName (From: Jens Alfke <email@hidden>)
 >Re: Case sensitive fileName (From: Don Quixote de la Mancha <email@hidden>)
 >Re: Case sensitive fileName (From: Michael Davey <email@hidden>)
 >Re: Case sensitive fileName (From: Don Quixote de la Mancha <email@hidden>)

  • Prev by Date: Re: Case sensitive fileName
  • Next by Date: Re: Blocked Reads
  • Previous by thread: Re: Case sensitive fileName
  • Next by thread: Re: Case sensitive fileName
  • Index(es):
    • Date
    • Thread