]> git.eshelyaron.com Git - emacs.git/commit
Refactor hash table vector reallocation
authorMattias EngdegÄrd <mattiase@acm.org>
Sat, 28 Oct 2023 10:07:42 +0000 (12:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 18:23:37 +0000 (19:23 +0100)
commit3a05e6ddf080da8159a65be28228d60483880b5b
treef37e0474562866b516cff893519381690bb4a859
parentd5e1ecf8e287de655054d6a4c045b843191d5a0f
Refactor hash table vector reallocation

* src/fns.c (larger_vecalloc): Remove.
(larger_vector): Simplify.
(alloc_larger_vector): New.
(maybe_resize_hash_table): Use alloc_larger_vector as a simpler and
faster replacement for larger_vecalloc.

(cherry picked from commit 43127e5ec110debadef5e823ee8adbfc561bb708)
src/fns.c