This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] time: Avoid alignment gaps in __tzfile_read
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Date: Sat, 2 Feb 2019 18:00:34 -0800
- Subject: Re: [PATCH] time: Avoid alignment gaps in __tzfile_read
- References: <email@example.com>
Florian Weimer wrote:
By ordering the suballocations by decreasing alignment, alignment
gaps can be avoided.
... In the 8-byte case, two reads are now needed because the
transitions and type indexes are no longer adjacent.
Is the idea to slightly decrease the amount of memory used, at the expense of a
slight increase in CPU time because of the two fread calls? If so, I don't see
the benefit of the change; usually we'd rather save CPU time even if a bit more
memory is used.