htable: add pre-sized option.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 12 May 2015 22:22:29 +0000 (15:22 -0700)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 12 May 2015 22:22:29 +0000 (15:22 -0700)
commit64b0c5cdeea5bc00ce3b9ef89fd3aade9cb0cd2c
treedccd08a62bfa2e5555865e1a66d8391336206a18
parentf45214bf85dd683a8268042b217e98444b4a2573
htable: add pre-sized option.

I thought this was slowing down my program; it turned out they were
all hashing to the same value.  But it might be useful.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/htable/htable.c
ccan/htable/htable.h
ccan/htable/htable_type.h
ccan/htable/test/run.c