summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/range.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-02-16 12:27:59 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2022-02-16 12:33:35 +0100
commit3b7d55a8013914b6707211d148a6e878ca118ad9 (patch)
tree64315cbcdb9b654c1ccb4a2397000c52b1644384 /lisp/emacs-lisp/range.el
parentbc84c31823e424827a27dc2eb1b5cbee040036cf (diff)
downloademacs-3b7d55a8013914b6707211d148a6e878ca118ad9.tar.gz
emacs-3b7d55a8013914b6707211d148a6e878ca118ad9.tar.bz2
emacs-3b7d55a8013914b6707211d148a6e878ca118ad9.zip
Speed up count_size_as_multibyte
This function is used in many places to calculate the length of a unibyte string converted to multibyte. * src/character.c (count_size_as_multibyte): Move the overflow test outside the loop, which makes it much faster. Standard compilers will even vectorise it if asked to (-O2 in Clang, -O3 in GCC).
Diffstat (limited to 'lisp/emacs-lisp/range.el')
0 files changed, 0 insertions, 0 deletions