[bug#60807] [PATCH 1/2] mtime: use Time::HiRes::stat when available for subsecond resolution
Mike Frysinger <[email protected]> Sat, 14 Jan 2023 18:49:23 -0500
| Newsgroups | gmane.comp.sysutils.automake.patches |
|---|---|
| Message-ID | <Y8M/g94hmhX5RmWW@vapier> |
On 14 Jan 2023 14:52, Karl Berry wrote:
> +my $have_time_hires = eval { require Time::HiRes; };
>
> I don't object. Although if there's no speed up in practice, I wonder if
> it's worth the extra code (simple-enough though it is). -k
there's no speed up in the execution of a single process, but there is a
speedup for users when using these tools back-to-back as they don't have
to regen as often. this fix is necessary for the next patch to speed up
the testsuite by using a smaller delay.
although that makes me realize i need to make the next patch work when
the system doesn't have Time::HiRes so users don't hit test failures.
there was only one test that checks current behavior, so shouldn't be
too bad.
-mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmPDP4MACgkQQWM7n+g3 9YHFThAA1bCmEv1mYuHUI3mIuJ+ELToQZA9s57S3xkhRo3JNDX3COhlBgRyZDA4N rU+tzNJ7ByL0XUL7G+K9RfWK6DFAGYDSqcjo521zbEu4tUx1mYUeSE9wgj3VA0/U dEJQK1BUhDsD/xet3+gKAwUqWsytSaDqyJhZJ8rAYXhujRYnsBr+zFz/AElYpkmp Ms1OtHZj7cYcGhiW9RoGlNTh/9WWaD1Pvzw9IuhV1Y0VVLVawAqM6pyH54yKkF32 Fg4dAjyh74Sji6uv7DSC5Bd21sYQlD3oTQKnwZ3VlY8Bz9m8fUng16vjJj403pvs 5i9B6hjkwqCHHTpp3GOzfbPmfp6JQ9Qk/kPMMioWiWmfsEVyz6kK1lmOCrLHhjaB Z21VptCgGCCS5x8vX62yV+IKFONip9Bl/DsHcVFNxDDh3fZwo2U2GWmH0UfEVCL7 Pk3WttKhSGzBw6csjvLZGjwSeavkRz1BMQXGQ1K1+JbMp3tteKlrvzsa5a1I1Bnr E43kZZeNuTItgTJZ2wogpQa9qudhagyYy14vZiYBDZcTTA0T3PqpTYZAWGGwz+BY mZQO5M2sIQCtlnVO2uP5E20p1lZIjw4YgFac+n7kyn5ToKqZwGswJhoq63whp1T4 3RCYX1jNskSD72Iv0Qrwny/aQ0gmpvsNtKw7XqpJarVq/Rmm5lU= =Yttv -----END PGP SIGNATURE-----