At 9:54 AM +0100 2003/03/14, Aaron Ardiri wrote:
> > As a side note, O'Reilly's "Palm Programming: The
>> Developer's Guide" says that that MemHandleUnlock
>> underneath does a MemPtrUnlock, thus making the latter
>> call slightly faster....
>
>you sure about this? i could see MemPtrUnlock() written as:
>
>void
>MemPtrUnlock(void *ptr)
>{
> MemHandleUnlock(MemPtrRecoverHandle(ptr));
>}
>
>its been a while since i looked at the os source in this area tho
>that will tell you for sure which one is 'faster' :)
MemPtrUnlock does not recover the handle as above. It is slightly faster than
MemHandleUnlock because there are fewer checks and de-references being performed on
the passed parameter.
Regards,
Jim Schram
PalmSource Inc.
Product Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/