]> git.eshelyaron.com Git - emacs.git/commit
More efficient hash table thawing
authorMattias EngdegÄrd <mattiase@acm.org>
Mon, 15 Jan 2024 09:58:59 +0000 (10:58 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 17 Jan 2024 16:41:13 +0000 (17:41 +0100)
commit54f539d6112ea48bcb41a21c1452ab8cd9f2ef13
tree7eff427e2f79142c87328018b9de2a386c13aa6d
parentda37a27584c08b50c18b128d3930c58d5891854e
More efficient hash table thawing

* src/fns.c (hash_table_thaw): Don't allocate anything for empty
tables.  Don't initialise the next vector twice.
(maybe_resize_hash_table): Factor out min_size constant.

(cherry picked from commit dc404c5d0caac798627751bfd77ed005629abd4e)
src/fns.c