diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-03 16:01:01 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-05 15:37:55 +0200 |
commit | 4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea (patch) | |
tree | 192e8b852c9af4e70ee3ec7a7ca26ae82c57bb2c /lisp/emacs-lisp | |
parent | c7ac76603f291d432586abd2eeb75e1ca6e54863 (diff) | |
download | emacs-4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea.tar.gz emacs-4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea.tar.bz2 emacs-4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea.zip |
Avoid expensive recoding for ASCII identity cases (bug#40407)
Optimise for the common case of encoding or decoding an ASCII-only
string using an ASCII-compatible coding, for file names in particular.
* src/coding.c (string_ascii_p): New function.
(code_convert_string): Return the input string for ASCII-only inputs
and ASCII-compatible codings.
* test/src/coding-tests.el (coding-nocopy-ascii): New test.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions