Is there a *much* faster FSRef conversion than CFURLCreateFromFSRef()?
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