]> mj.ucw.cz Git - libucw.git/commit
A couple of minor improvements to the generic hash tables:
authorMartin Mares <mj@ucw.cz>
Mon, 20 Sep 2004 10:03:23 +0000 (10:03 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 20 Sep 2004 10:03:23 +0000 (10:03 +0000)
commit98d2a0db182dd934c0ffb90fcb025c5367170009
treeb14287a5e9390f8db15d64fc8eb8458c3ab17862
parent0212c89995aff7120ccb04b77241e31d831e2ba6
A couple of minor improvements to the generic hash tables:

o  Comment on HASH_GIVE_ALLOC corrected, the automatic choice between
   normal and pooled allocation was never implemented, because we don't
   have enough information to decide the right pool size. HASH_AUTO_POOL
   has been implemented instead.
o  Pooled allocation no longer conflicts with remove/delete, it just
   produces memory leaks within the pool, which are usually harmless.
o  Added HASH_TABLE_ALLOC switch.
o  Internal decisions to enable HASH_CONSERVE_SPACE were made too late
   and didn't influence hash node layout. Fixed.
lib/hashtable.h