summaryrefslogtreecommitdiff
path: root/src/coding.h
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-11-21 12:27:42 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2024-01-13 20:50:38 +0100
commit3b00255a4c70bc1075446c94a8ff65c987ac143f (patch)
treec47f8d591ac87bdd1f8ca70c74d5aa11b6ac136c /src/coding.h
parenta3ae5653cfe1ab2b3eb4c77ce729844ad442b562 (diff)
downloademacs-3b00255a4c70bc1075446c94a8ff65c987ac143f.tar.gz
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/coding.h')
-rw-r--r--src/coding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.h b/src/coding.h
index e9b72403c6b..9beb4350bbf 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -194,7 +194,7 @@ enum coding_attr_index
#define CODING_SYSTEM_ID(coding_system_symbol) \
hash_lookup (XHASH_TABLE (Vcoding_system_hash_table), \
- coding_system_symbol, NULL)
+ coding_system_symbol)
/* Return true if CODING_SYSTEM_SYMBOL is a coding system. */