Hans Boldt wrote:
>
> How much space is being wasted?  Taking alignment considerations
> into account, the overhead on average is probably just a couple of
> bytes per standalone field or data structure.
>

In case Hans' statement is alarming, alignment only applies to fields
that have alignment considerations (*, I, U, F types).  And the system
does seem to align data structures.

But it seems to me that forcing fields to be contiguous by coding them
in a data structure would tend to conserve storage, not waste it.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.