Re: Get size of folder
Re: Get size of folder
- Subject: Re: Get size of folder
- From: Alastair Houghton <email@hidden>
- Date: Wed, 19 Aug 2009 11:26:09 +0100
On 19 Aug 2009, at 10:56, Jean-Daniel Dupas wrote:
and that someone had benchmarked Cocoa vs. Carbon vs. BSD, and
Carbon came out on top. What I didn't remember was that it was you
who did it:
The last time I saw this kind of benchmark, the BSD code were poorly
implemented and did not use the proper functions. That's why it was
slower.
FWIW, the benchmark Charles mentioned *wasn't* poorly implemented. It
is just that enumerating *all* the files and folders on the disk is a
special case where FSCatalogSearch() or the BSD searchfs() API will do
extremely well on HFS/HFS+ because of the way the filesystem works.
Enumerating a subtree is a different operation.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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