diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-07 10:10:04 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-04-11 17:04:57 +0200 |
commit | a79019c16b23f40c29509b6c0bf6f79d87f18c1e (patch) | |
tree | 54586d19a1dc42b291095e87cb750dbadedcc615 /lisp/emacs-lisp | |
parent | 1988ffbaed709dfc71126efbf06644476830f07e (diff) | |
download | emacs-a79019c16b23f40c29509b6c0bf6f79d87f18c1e.tar.gz emacs-a79019c16b23f40c29509b6c0bf6f79d87f18c1e.tar.bz2 emacs-a79019c16b23f40c29509b6c0bf6f79d87f18c1e.zip |
Allow ENCODE_FILE and DECODE_FILE to use no-copy conversion
They already did return their argument under some circumstances;
this change broadens it to further reduce allocation in common cases
(bug#40407).
* src/coding.c (convert_string_nocopy): New function.
(decode_file_name, encode_file_name): Use convert_string_nocopy.
* src/coding.h (ENCODE_FILE, DECODE_FILE): Note the nocopy semantics.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions