diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-15 10:48:37 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-15 11:19:51 -0700 |
commit | b467bb531e1ab0eed57e1889004d2115e80e4292 (patch) | |
tree | 844d23f28d438f66dd8659dec46baf081722888f /msdos | |
parent | e97def2bbce7777d3afc916a5aa4d951fab5f3f4 (diff) | |
download | emacs-b467bb531e1ab0eed57e1889004d2115e80e4292.tar.gz |
Minimize ‘equal’ calls in (delete x vector)
* src/fns.c (Fdelete): When deleting from a vector, call Fequal
only once per vector element. This is faster when Fequal is slow,
and avoids the need to preinitialize the vector result. Finish
when the result is exhausted, not when the input is exhausted;
the two are equivalent but the former may be faster.
* test/src/fns-tests.el (test-vector-delete): New test.
Diffstat (limited to 'msdos')
0 files changed, 0 insertions, 0 deletions