• 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
Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?


  • Subject: Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
  • From: "Alan Smith" <email@hidden>
  • Date: Tue, 12 Sep 2006 10:57:32 -0400

Hello everyone,

I'm using FSRefs to make a speedy directory enumerator. When I
"sampled" it with Shark I found, to my dismay, that the slowest part
was CFURLCreateFromFSRef(). Actually the slowest function was
FSRefMakePath() which CFURLCreateFromFSRef() uses. After googleing in
hopes of finding a faster way I was forced to stick with the slow
FSRefMakePath(). I say it is slow because in an enumeration test of
/Applications 22% of the time was spent in that function, which (IMHO)
is too long.

Preferably there is a way to get a CFStringRef or NSString but if I
have to use a URL I'll survive.

I apologize if this is the wrong place to ask this, but I don't know
of another awesome mailing list like this one. If you do, and this is
the wrong place for this question, please redirect me.

Many thanks, Alan

--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"Don't waste your life doing things others have already done."
_______________________________________________
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


  • Follow-Ups:
    • Re: Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
      • From: Thomas Engelmeier <email@hidden>
    • Re: Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
      • From: Rosyna <email@hidden>
  • Prev by Date: [Moderator] EOT (Re: Way to control another App's window)
  • Next by Date: Re: Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
  • Previous by thread: Re: NSArrayController remove:
  • Next by thread: Re: Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
  • Index(es):
    • Date
    • Thread