diff options
| author | Mattias EngdegÄrd | 2023-11-21 12:27:42 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-01-13 20:50:38 +0100 |
| commit | 3b00255a4c70bc1075446c94a8ff65c987ac143f (patch) | |
| tree | c47f8d591ac87bdd1f8ca70c74d5aa11b6ac136c /src/bytecode.c | |
| parent | a3ae5653cfe1ab2b3eb4c77ce729844ad442b562 (diff) | |
| download | emacs-3b00255a4c70bc1075446c94a8ff65c987ac143f.tar.gz emacs-3b00255a4c70bc1075446c94a8ff65c987ac143f.zip | |
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
Diffstat (limited to 'src/bytecode.c')
| -rw-r--r-- | src/bytecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index e989e5fadf0..a0f02d518b7 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -1751,7 +1751,7 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 1751 | break; | 1751 | break; |
| 1752 | } | 1752 | } |
| 1753 | else | 1753 | else |
| 1754 | i = hash_lookup (h, v1, NULL); | 1754 | i = hash_lookup (h, v1); |
| 1755 | 1755 | ||
| 1756 | if (i >= 0) | 1756 | if (i >= 0) |
| 1757 | { | 1757 | { |