[10] gmtime/localtime performance

Florian Weimer fweimer@redhat.com
Wed Sep 18 07:04:50 GMT 2024


* Paul Eggert:

> On 2024-09-14 04:00, Florian Weimer wrote:
>> We could contemplate implementing the more extensive NetBSD tzdata API,
>> but perhaps programmers should use the interfaces provided by libstdc++
>> instead (although those lack automated reload on tzdata updates).
>
> There's a need for the NetBSD/tzcode API even C programs. At least
> Emacs uses it, via Gnulib emulation on most platforms.

Emacs already has plenty of C++ dependencies.  It's not possible to
build it without a C++ compiler on GNU systems.

>> Another issue in our timezone code is the mktime implementation.
>
> A related issue is strftime %s.

How so?  The %s directive seems more harmless than some others.

Thanks,
Florian



More information about the Libc-alpha mailing list