Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 36e41d53ff6a5995c16234f8027ef34b5e6a34cc
https://github.com/Perl/perl5/commit/36e41d53ff6a5995c16234f8027ef34b5e6a34cc
Author: Karl Williamson <[email protected]>
Date: 2024-02-07 (Wed, 07 Feb 2024)
Changed paths:
M locale.c
Log Message:
-----------
Don't use both mini_mktime() and mkttime()
mini_mktime() has less overhead than libc mkttime(), but it doesn't get
all the desired fields on all platforms. Prior to this commit, both got
called on such platforms, roughly doubling the amount of time spent.
So just use the slightly more expensive function on those platforms and
avoid that redundant overhead.
The only glitch I've seen is that mktime() likely doesn't handle leap
seconds the same way mini_mktime() does; so this calls both functions
for those very rare instances.