diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2022-02-16 12:27:59 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2022-02-16 12:33:35 +0100 |
commit | 3b7d55a8013914b6707211d148a6e878ca118ad9 (patch) | |
tree | 64315cbcdb9b654c1ccb4a2397000c52b1644384 /lisp/emacs-lisp/bytecomp.el | |
parent | bc84c31823e424827a27dc2eb1b5cbee040036cf (diff) | |
download | emacs-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/bytecomp.el')
0 files changed, 0 insertions, 0 deletions