]> git.eshelyaron.com Git - emacs.git/commit
Speed up number-to-string for fixnums
authorMattias Engdegård <mattiase@acm.org>
Fri, 18 Mar 2022 10:43:10 +0000 (11:43 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 18 Mar 2022 10:54:08 +0000 (11:54 +0100)
commitce26657b5d7e77d851ed9267d554f4f48e43a0b6
tree295a1e6bad8c60fb9408e6a2a408483959ec75c7
parent2b05a06786e7b5adf9d4329959da49d9b40c2bef
Speed up number-to-string for fixnums

Do the binary-to-decimal conversion by hand for fixnums instead of
calling sprintf.  This results in a noticeable speed increase (on my
machine, 2.2× faster excluding GC).

* src/data.c (Fnumber_to_string): Don't use sprintf for fixnums.
src/data.c