In article <erfvc6$5v7$1@[EMAIL PROTECTED]
>, Stephen <stephen@[EMAIL PROTECTED]
> wrote:
> The documentation says the values can be 1, 2, 4, 16, and C. I
> understand the default is to align on 2 byte boundaries, and that 1
> is the same as a 'packed' record, but how do I know exactly when to
> choose 2, 4, 16, etc.?
4 probably provides the best overall performance nowadays (unless you
have a lot of records with doubles which are wrongly aligned if you use
this settings).
> Are there performance gains if I use a higher
> alignment value?
Potentially, yes. There can also be performance losses, because higher
alignment results in more wasted space in the cpu caches (all the
padding takes up space in the cpu's caches).
Jonas


|