]> git.eshelyaron.com Git - emacs.git/commit
Minor weak hash table performance tweaks
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Feb 2017 23:31:29 +0000 (15:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 21 Feb 2017 23:39:17 +0000 (15:39 -0800)
commit17af43ca76692c7e889c91d3fa9e6690349f0d57
treebc0cfd0dbe36db16a03daf13d62eceeaeca12211
parent83c9c6fc1cc943f239a021b42a8ca9b0e162198c
Minor weak hash table performance tweaks

* src/fns.c (make_hash_table): Omit unnecessary assignment to
h->next_weak when the hash table is not weak.
(copy_hash_table): Put the copy next to the original in the
weak_hash_tables list, as this should have better locality
when scanning the weak hash tables.
src/fns.c