aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdumper.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-01-10 11:50:19 +0100
committerMattias EngdegÄrd2024-01-12 15:06:14 +0100
commit8ec0e030b661ae50d1aef4723b4e83a03645e4ee (patch)
tree013ed1d65639596d06143173991250fc4a0e3af6 /src/pdumper.c
parent8884720dce883142965a958fc5a33071388ec2e1 (diff)
downloademacs-scratch/hash-table-perf.tar.gz
emacs-scratch/hash-table-perf.zip
Combine hash and next vector into a single arrayscratch/hash-table-perf
This shrinks the hash object by one word and should give better locality since these values are often accessed at the same time.
Diffstat (limited to 'src/pdumper.c')
-rw-r--r--src/pdumper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index 0bc3a9bd958..83406343b98 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -2717,8 +2717,7 @@ static void
2717hash_table_freeze (struct Lisp_Hash_Table *h) 2717hash_table_freeze (struct Lisp_Hash_Table *h)
2718{ 2718{
2719 h->key_and_value = hash_table_contents (h); 2719 h->key_and_value = hash_table_contents (h);
2720 h->next = NULL; 2720 h->hash_next = NULL;
2721 h->hash = NULL;
2722 h->index = NULL; 2721 h->index = NULL;
2723 h->table_size = 0; 2722 h->table_size = 0;
2724 h->index_size = 0; 2723 h->index_size = 0;