diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2024-07-11 15:28:58 +0200 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-07-11 16:01:41 +0200 |
commit | e30706fd12bce459b56123ad36a4e8c1c9d374e1 (patch) | |
tree | a7f80134870feeb2904b1b7295c00cfb5f6501cd /lisp/emacs-lisp/comp.el | |
parent | e8b3c4cb58ce6e78b9bcfb9146f0ac6ece0d3055 (diff) | |
download | emacs-e30706fd12bce459b56123ad36a4e8c1c9d374e1.tar.gz emacs-e30706fd12bce459b56123ad36a4e8c1c9d374e1.tar.bz2 emacs-e30706fd12bce459b56123ad36a4e8c1c9d374e1.zip |
Avoid mpz for some common timestamp cases
Performance problem reported by Gerd Möllmann and Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2024-06/msg00530.html
https://lists.gnu.org/r/emacs-devel/2024-06/msg00539.html
* src/timefns.c (CFORM_SECS_ONLY): The exact tv_nsec value is now
ignored if nonnegative (i.e., the only thing that matters is that
it’s nonnegative).
(decode_time_components): Use intmax_t instead of mpz arithmetic
if the tick count fits. Add another ‘default: eassume (false);’
so that the revised code pacifies --enable-gcc-warnings with GCC
11.4.0 on x86-64.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
0 files changed, 0 insertions, 0 deletions