diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-02-04 10:01:29 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-04 10:01:29 +0100 |
commit | 221baae0012e56e4043b914fec47340ef3a1e0c8 (patch) | |
tree | 3d6e6c931cffecfd10a836bc0acaf51410a3a5cc /ChangeLog | |
parent | b8c7238167de4c080b8b0909213bc7b5abef46e3 (diff) | |
download | glibc-221baae0012e56e4043b914fec47340ef3a1e0c8.zip glibc-221baae0012e56e4043b914fec47340ef3a1e0c8.tar.gz glibc-221baae0012e56e4043b914fec47340ef3a1e0c8.tar.bz2 |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2019-02-04 Florian Weimer <fweimer@redhat.com> + + * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid + alignment gaps. + 2019-02-03 Florian Weimer <fweimer@redhat.com> * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its |