[PATCH] Speed up find_transition
Ulrich Drepper
drepper@redhat.com
Mon Mar 5 19:45:00 GMT 2007
Jakub Jelinek wrote:
> The following patch speeds up find_transition.
Applied.
> BTW, shouldn't we for the 64-bit tables generate transitions till more than
> 2037 for all locales that are still changing DST? Or teach glibc tz reader
> to grok the POSIX tz string stored at the end of TZif2 files and handle
> timer >= transitions[num_transitions - 1] specially (guess the env string
> should be parsed just lazily, because people will rarely query years above
> last transition)?
I think we should start supporting the tz string at some point. Blindly
extending the range of the table means lots of wasted disk space and CPU
cycles.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20070305/d925f7dc/attachment.sig>
More information about the Libc-hacker
mailing list