Re: memcpy with 64 bit
Re: memcpy with 64 bit
- Subject: Re: memcpy with 64 bit
- From: "Sean McBride" <email@hidden>
- Date: Tue, 15 Dec 2009 14:22:41 -0500
- Organization: Rogue Research Inc.
On 12/15/09 11:46 AM, Jean-Daniel Dupas said:
>«Mac OS X implements a highly-tuned, threadsafe allocation library,
>providing standard implementations of the malloc,calloc, realloc, and
>free routines, among others. If you are allocating memory using older
>routines such as NewPtr or NewHandle, you should change your code to use
>malloc instead. The end result is the same since most legacy routines
>are now wrappers for malloc anyway.»
>
>from http://developer.apple.com/mac/library/documentation/Performance/
>Conceptual/ManagingMemory/Articles/MemoryAlloc.html
I would think one place that using NewHandle() is still the best idea is
when an API requires a handle. This is the case for many QuickTime
APIs, and the OP did mention using QuickTime. Another would be the
Alias Manager.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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