| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mar 30, 2005, at 5:18 PM, Laurence Harris wrote:
Well, you could measure it... or step through it in gdb. Last time I looked, it called malloc_size, then looked in another table based on that size to get where the actual size is stored. I think the malloc_size implementation is in open source, so that could give you an idea of *its* implementation (likely requiring a lot of scanning.) GetPtrSize also works if you hand it a dereferenced handle, in which case it has to call RecoverHandle and GetHandleSize... There is no way all that is going to be more efficient than keeping track of it yourself :-) --smz |
_______________________________________________ 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: Handles and Pointers [was: performance issues] (From: Laurence Harris <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.