Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSDirectorySize code finished



Ya'll need to put up or Shark up :) 

I ran Sanbourne's code on my home directory. Took a long time ... maybe 20 seconds.  In the end, Shark puts most of the blame on FSOpenIterator and FSGetCatalogInfoBulk. Together, they take up about 70% of the samples Shark was able to gather.

The CF stuff looks like noise in comparison, but if I select every CF call in the function, it does add up to about 10% of the total function time. That's probably worth refining a bit. Too bad it's still going to take an eternity in user-time to get the size of my home directory. So you'll have to run this on a thread :) 

Daniel

On Oct 30, 2005, at 3:43 AM, Laurence Harris wrote:


True, but what evidence do you have that CF is faster? In any case, don't

get fixated on STL. If you don't like or want to use STL, that's fine. It

would be simple enough to write code for an efficient stack that would do

the same thing. You're just storing a bunch of 80-byte structs. Nothing is

going to be more efficient than copying them to or reading from slots in an

array.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: FSDirectorySize code finished (From: Laurence Harris <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.