From 203fbb778e9cfe3aff8b4dee6da9a103a171ca0e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 28 Feb 2020 16:58:49 +0100 Subject: Update hash map comments --- include/std/hash_map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/std/hash_map.h') 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; -- cgit v1.2.3