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: Why does free() take 1,100 microseconds?




On Jul 26, 2005, at 10:42 , neal olander wrote:

Thanks for the suggestion.

I've already run the Shark profiler on the application. I've pinpointed the slowness down to the free() function ... but I cant get details inside that.

I'm posting to Darwin-dev rather than optimization because I figured that Darwin-dev peopole might have more insight into the internal operations of free().

I suppose my question could be re-worded as:

What could free() be doing that could possibly take 1,100 microseconds, and is there any thing I can do to reduce that time?

Or, is there a way for me to get access to the free() source code?

It's free :-} Check <http://developer.apple.com/darwin> and follow the signs to the darwin source. malloc/free code is in the Libc project.


Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
      - Homer J Simpson
--------


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

This email sent to email@hidden
References: 
 >Re: Why does free() take 1,100 microseconds? (From: "neal olander" <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.