Using struct = struct doesn't require memory manager that will take care of memory arrangement, validity, allocation, and etc .....
So struct = struct should be more direct and efficient.
The main case where direct struct copy wouldn't be more efficient would be when the struct is very large and you're running on Palm OS 5 or later. The overhead of calling MemMove plus the time spent doing a memory copy in ARM code may be less than the time spent for PACE to simulate all the 68K instructions used in the memory move.
There's no one right solution. Your best bet is to profile your code and only focus energy on the real bottlenecks; worrying about every line is just an easy way to miss significant optimization opportunies.
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
