]> 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)
committerEshel Yaron <me@eshelyaron.com>
Sun, 14 Jan 2024 15:15:41 +0000 (16:15 +0100)
commit9281482aeb969ff2c2a4f0443870804b92e2152f
treeb321aceb96508b74289f95ba62271271b3a3153f
parent9743ba1016f41915d8e7704caabb0f85a92ea1d4
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

(cherry picked from commit 3b00255a4c70bc1075446c94a8ff65c987ac143f)
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