strmap: enable allocations to come from a mem_pool
authorElijah Newren <redacted>
Wed, 11 Nov 2020 20:02:18 +0000 (20:02 +0000)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
strmap.c
strmap.h
git clone https://git.99rst.org/PROJECT