]> git.ipfire.org Git - thirdparty/git.git/commit
strmap: enable allocations to come from a mem_pool
authorElijah Newren <newren@gmail.com>
Wed, 11 Nov 2020 20:02:18 +0000 (20:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Nov 2020 20:55:27 +0000 (12:55 -0800)
commita208ec1f0b654390ad06372c53b7ffe785052d98
treed4854d3c5d85e077607c64d9b4d9b02e2fa2acdd
parent1201eb628ac753af5751258466df5f964bdc9f17
strmap: enable allocations to come from a mem_pool

For heavy users of strmaps, allowing the keys and entries to be
allocated from a memory pool can provide significant overhead savings.
Add an option to strmap_init_with_options() to specify a memory pool.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
strmap.c
strmap.h