]> git.eshelyaron.com Git - emacs.git/commit
Speed up fixnum printing
authorMattias Engdegård <mattiase@acm.org>
Fri, 18 Mar 2022 12:58:36 +0000 (13:58 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 18 Mar 2022 12:58:36 +0000 (13:58 +0100)
commit4d61badad15e8213c84798b85f10868fc48b94ee
tree2aa5fadc577ee2b0f99ddc5278230bda8dc175a9
parent499f2085fa6fce6c7a2868c8d27d465f43d53f0f
Speed up fixnum printing

Use the new number-to-string code to speed up fixnum printing, with
similar results (often more than twice as fast as before).

* src/data.c (Fnumber_to_string): Move fixnum conversion to...
(fixnum_to_string): ... this new function.
* src/lisp.h: (fixnum_to_string): External declaration.
* src/print.c (print_object): Use fixnum_to_string instead of sprintf.
src/data.c
src/lisp.h
src/print.c