From 3b00255a4c70bc1075446c94a8ff65c987ac143f Mon Sep 17 00:00:00 2001 From: Mattias EngdegÄrd Date: Tue, 21 Nov 2023 12:27:42 +0100 Subject: 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 --- src/bytecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bytecode.c') 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, break; } else - i = hash_lookup (h, v1, NULL); + i = hash_lookup (h, v1); if (i >= 0) { -- cgit v1.2.1