]> git.eshelyaron.com Git - emacs.git/commit
Improve string_char_and_length speed
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 26 Apr 2020 22:18:49 +0000 (15:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Apr 2020 02:31:54 +0000 (19:31 -0700)
commited2def7d5e423388ca75c6e10fd7b42e0c4789c7
treea488de7c0a4729937cfa8fca01093433a609374f
parent895a18eafb84bca68045e552437dbb00a15a9f56
Improve string_char_and_length speed

This tweak improved the CPU time performance of
‘make compile-always’ by about 1.7% on my platform.
* src/character.c (string_char): Remove; no longer used.
* src/character.h (string_char_and_length): Redo so that it
needn’t call string_char.  This helps the caller, which can now
become a leaf function.
src/character.c
src/character.h