aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-11-21 12:27:42 +0100
committerMattias EngdegÄrd2024-01-13 20:50:38 +0100
commit3b00255a4c70bc1075446c94a8ff65c987ac143f (patch)
treec47f8d591ac87bdd1f8ca70c74d5aa11b6ac136c /src/bytecode.c
parenta3ae5653cfe1ab2b3eb4c77ce729844ad442b562 (diff)
downloademacs-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.c2
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 {