Minimize bihash memory consumption 49/10449/3
authorDave Barach <dave@barachs.net>
Wed, 7 Feb 2018 18:14:06 +0000 (13:14 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 8 Feb 2018 10:02:16 +0000 (10:02 +0000)
Reference-count the number of entries in each bucket. If the reference
count goes to zero, free the backing store.

Add long-term churn-testing to test_bihash_template.c, thanks to
Andrew Yourtchenko for the initial implementation.

Change-Id: I4fbd9229cacfaba8027a85cbf87b74afdead6e39
Signed-off-by: Dave Barach <dave@barachs.net>

No differences found