On Tue, 23 Jan 2001, Ioi Lam wrote:
> Hi,
>
> Is it efficient to allocate a lot of small records from a database? We
> need to allocate a bunch of stuff at the beginning of a program
> dynamically and the dynamic heap is already used up. We don't do a lot
> of memory modification.
>
> Each record overhead is 20~24 bytes, right?
>
> Please let me know if this is crazy.
> Thanks!
> - Ioi Lam
It depends on your needs / desire to code more. It would be more
efficient to pack all your small records, then saves the packed versions
into larger database records. However, this requires more coding to
access the records, so it's a trade off.
--
Brian Mathis
Direct Edge
http://www.directedge.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/