]> git.eshelyaron.com Git - emacs.git/commit
Don't dump the `hash` vector if it will need to be recomputed anyway
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Jul 2019 18:59:15 +0000 (14:59 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Jul 2019 19:03:03 +0000 (15:03 -0400)
commit0dc5a85a1c3772a6e78f077719d82f437f626b1e
treeabe77c1082f55453027d08937302a3e122069be7
parentc74da403aa95ec67598c41aa4f1b97975391135b
Don't dump the `hash` vector if it will need to be recomputed anyway

* src/fns.c (hash_table_rehash): Only set `hash` field at the end.
(sweep_weak_table): Only set slot of `hash` vector when that vector exists.
(Fhash_table_count): No need to hash_rehash_if_needed any more.

* src/lisp.h (hash_rehash_needed_p): Test the presence of `hash` instead.

* src/pdumper.c (check_hash_table_rehash, dump_hash_table):
Set `hash` to nil to indicate that the table needs to be rehashed.
src/fns.c
src/lisp.h
src/pdumper.c