]> git.eshelyaron.com Git - emacs.git/commit
Inlined and specialised hash table look-up
authorMattias Engdegård <mattiase@acm.org>
Tue, 21 Nov 2023 11:27:42 +0000 (12:27 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sat, 13 Jan 2024 19:50:38 +0000 (20:50 +0100)
commit3b00255a4c70bc1075446c94a8ff65c987ac143f
treec47f8d591ac87bdd1f8ca70c74d5aa11b6ac136c
parenta3ae5653cfe1ab2b3eb4c77ce729844ad442b562
Inlined and specialised hash table look-up

This improves performance in several ways.  Separate functions are
used depending on whether the caller has a hash value computed or not.

* src/fns.c (hash_lookup_with_hash, hash_lookup_get_hash): New.
(hash_lookup): Remove hash return argument.
All callers adapted.

hash_lookup_with_hash hash_hash_t arg
15 files changed:
src/bytecode.c
src/category.c
src/ccl.c
src/charset.c
src/charset.h
src/coding.h
src/composite.c
src/emacs-module.c
src/fns.c
src/image.c
src/json.c
src/lisp.h
src/lread.c
src/macfont.m
src/minibuf.c