aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-28 16:58:49 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:04 +0200
commit203fbb778e9cfe3aff8b4dee6da9a103a171ca0e (patch)
treef1c128d3a0235e4f651c96e883d8226d071f6490 /include
parent902a81528b9d2edcf93226a2ca13da6fcc1839e5 (diff)
Update hash map comments
Diffstat (limited to 'include')
-rw-r--r--include/std/hash_map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/std/hash_map.h b/include/std/hash_map.h
index 05755ce..19f97a2 100644
--- a/include/std/hash_map.h
+++ b/include/std/hash_map.h
@@ -12,6 +12,7 @@ typedef struct HashMap HashMap;
typedef int(*HashMapCompare)(const void *a, const void *b);
typedef usize(*HashMapHash)(const u8 *data, usize size);
+/* TODO: Optimize small hash maps by using the members of the struct instead of allocating on heap */
struct HashMap {
ArenaAllocator *allocator; /* borrowed */
Buffer/*HashMapBucket*/ buckets;