]> git.eshelyaron.com Git - emacs.git/commit
Rewrite string-greaterp and string> using string-lessp
authorMattias Engdegård <mattiase@acm.org>
Wed, 16 Mar 2022 15:24:24 +0000 (16:24 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 4 Apr 2022 07:49:31 +0000 (09:49 +0200)
commitf4833c88bbb3ca69f75e230a50bbd5edb4d5c00d
treed36d89e233f8a0a9510bb00669cd95dd7fedfdae
parent16ee9fa138817c061d00cf9a59d2b3f559eebfe1
Rewrite string-greaterp and string> using string-lessp

Since string-lessp has its own byte-op, using it is much faster than
calling string-greaterp even with the need to bind a temporary
variable.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-string-greaterp): New.
(string-greaterp, string>): Set byte-optimizer.
lisp/emacs-lisp/byte-opt.el