Re:Uthash – C macros for hash tables and more
by rurban on Saturday March 26, 2022 @01:02PM
(#30813458)
for this I would use CHM, ordered minimal perfect hashes with external mmap'ed keys. still constant lookup, just the position needs to be stored in the value also.
[ Parent
| on HN ]
Re:Uthash – C macros for hash tables and more
by marginalia_nu on Saturday March 26, 2022 @03:35PM
(#30814664)
Problem is I don't know the items beforehand, instead I need to build the hash as I encounter new pages. I don't know any way of reconcile that with a minimal perfect hash.