]> git.eshelyaron.com Git - emacs.git/commit
Speed up comparisons between 2 fixnums
authorMattias Engdegård <mattiase@acm.org>
Wed, 16 Mar 2022 16:01:57 +0000 (17:01 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 4 Apr 2022 07:49:31 +0000 (09:49 +0200)
commit530f163a7f4f1f0ead119b8d3c3dd9fa882af9b2
treeec3ea94eab8acd9dee73d3e0e21580d1611aea06
parentf4833c88bbb3ca69f75e230a50bbd5edb4d5c00d
Speed up comparisons between 2 fixnums

Since <, <=, > and >= have their own byte-ops, the corresponding
functions are mostly used as arguments to higher-order functions.
This optimisation is particularly beneficial for sorting, where the
comparison function is time-critical.

* src/data.c (Flss, Fgtr, Fleq, Fgeq):
* src/fileio.c (Fcar_less_than_car):
Fast path for calls with 2 fixnum arguments.
src/data.c
src/fileio.c