From 221baae0012e56e4043b914fec47340ef3a1e0c8 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 4 Feb 2019 10:01:29 +0100 Subject: time: Avoid alignment gaps in __tzfile_read By ordering the suballocations by decreasing alignment, alignment gaps can be avoided. Also use __glibc_unlikely for reading the transitions and type indexes. In the 8-byte case, two reads are now needed because the transitions and type indexes are no longer adjacent. The separate call to __fread_unlocked does not matter from a performance point of view because __tzfile_read is only invoked rarely. --- ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index bc1b17f..0c9a4e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-02-04 Florian Weimer + + * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid + alignment gaps. + 2019-02-03 Florian Weimer * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its -- cgit v1.1