Fast file access (was Re: [ANN] Shovel - Third-Party "Software Update")
Fast file access (was Re: [ANN] Shovel - Third-Party "Software Update")
- Subject: Fast file access (was Re: [ANN] Shovel - Third-Party "Software Update")
- From: mathew <email@hidden>
- Date: Sat, 3 Apr 2004 01:25:40 -0500
On Mar 24, 2004, at 16:38, Alastair Houghton wrote:
>
Actually I think Uli should be using the Carbon routines
>
(FSCatalogSearch() I think, although I'm sure Uli knows more about
>
Carbon than I do as it happens ;->) to scan for all MacPAD.url files on
>
the disk, because that should really fly on HFS+ disks due to the way
>
HFS+ works. It's much faster than the "find" command will *ever* be,
>
especially on disks with lots of directories.
Interesting... Apple's documentation says that for maximum speed, you
should use the BSD APIs for file access. Which makes sense, if you
think about it, because Carbon is layered on top of the underlying
Darwin system.
Anyone feel like doing some speed comparisons between Cocoa, Carbon and
BSD for trawling every folder on a big hard disk, to put this one to
rest?
mathew
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.