]> git.eshelyaron.com Git - emacs.git/commit
Speed up string-to-unibyte
authorMattias Engdegård <mattiase@acm.org>
Sun, 10 Jul 2022 16:02:08 +0000 (18:02 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 10 Jul 2022 16:20:37 +0000 (18:20 +0200)
commitcfda663282b788972c344e6733a8aa60a3e0f545
tree988cf3745e6057b79180a659aa4c9071acf6a1da
parent4bab499ed0d40d4e5ca68e5a17bcf5341125f734
Speed up string-to-unibyte

* src/character.h (str_to_unibyte):
* src/character.c (str_to_unibyte): Remove.
* src/fns.c (Fstring_to_unibyte): Ditch the call to str_to_unibyte and
the unnecessary heap allocation.  Write new, faster code.
* test/src/fns-tests.el (fns--string-to-unibyte): New test.
src/character.c
src/character.h
src/fns.c
test/src/fns-tests.el