]> git.eshelyaron.com Git - emacs.git/commit
Faster append and vconcat
authorMattias Engdegård <mattiase@acm.org>
Wed, 26 Jan 2022 11:30:39 +0000 (12:30 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 7 Jul 2022 15:43:21 +0000 (17:43 +0200)
commit53c0690fa28f338071703f1567d2d1c4054416f0
treedf9781443fed41354470ba90b589b3e4adfbef39
parent9cd72b02b67e92e89b83791b66fe40c4b50d8357
Faster append and vconcat

By separating the code paths for append and vconcat, each becomes
simpler and faster.

* src/fns.c (concat_strings): Rename to...
(concat_to_string): ...this.
(concat): Split into concat_to_list and concat_to_vector.
(concat_to_list, concat_to_vector): New, specialised and
streamlined from earlier combined code.
(concat2, concat3, Fappend, Fconcat, Fvconcat): Adjust calls.
src/fns.c