summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-03-16 15:17:19 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2022-04-04 09:49:31 +0200
commit16ee9fa138817c061d00cf9a59d2b3f559eebfe1 (patch)
tree7c3530dca438a692ece9ec9062931ac6da939c7a /src/eval.c
parent85fb2341f82d2ba687cefd21ec84d46d06834f57 (diff)
downloademacs-16ee9fa138817c061d00cf9a59d2b3f559eebfe1.tar.gz
emacs-16ee9fa138817c061d00cf9a59d2b3f559eebfe1.tar.bz2
emacs-16ee9fa138817c061d00cf9a59d2b3f559eebfe1.zip
Faster `string-lessp` for unibyte arguments
Since this function is commonly used as a sorting predicate where it is time-critical, this is a useful optimisation. * src/fns.c (Fstring_lessp): Add fast path for the common case when both arguments are unibyte. * test/src/fns-tests.el (fns-tests--string-lessp-cases) (fns-tests-string-lessp): New test.
Diffstat (limited to 'src/eval.c')
0 files changed, 0 insertions, 0 deletions