hashmap.c
hashmap.c copied to clipboard
Hash map implementation in C.
i found that hashmap_free do not work, the mem can not free and with the time going on, the mem will reach very high, so what can i do?
As part of a project we're working on, we are not creating a key based on the item stored in the hash map. We have a pointer to the item...
For more readability and quick access to the functions' documentation, I refactored the documentation in more nit way to support the hover documentation display. Please check the changes and let...
Thanks for making this software, it's very useful. Is it safe to call `hashmap_delete` while using `hashmap_iter` (or `hashmap_scan`)? Would this ever result in invalid pointers, or in some items...
Hi Tidwall, I modified the if-condition in `hashmap_set_with_hash` used to check new element-data is same as the bucket_item data or not. It may be better? I don't known :), just...
in function `uint64_t hashmap_sip(const void *data, size_t len, uint64_t seed0,uint64_t seed1)` wher the input buffer is smaller than 8 bytes, copy it into a zero-padded local buffer to avoid out-of-bounds...
I noticed that in https://github.com/tidwall/hashmap.c/commit/84d0d3bf75f297443a5069b801ea13d93ee05e0a#diff-9257c021257b8c2773c58e19016dbd9499f0524100e98dd4616f8a9a55e8b13fR33 return types for `hashmap_get`, `hashmap_set`, `hashmap_delete`, and `hashmap_probe` were changed to constant. This is raising warnings on code that I have written previously. Before I...