don't store key in fixed dict
This commit is contained in:
parent
3a8a66850d
commit
6d561010cf
@ -106,7 +106,6 @@ INLINE void merge_sort(void *items, u64 item_count, u64 item_size, sort_compare_
|
||||
* ========================== */
|
||||
|
||||
struct fixed_dict_entry {
|
||||
struct string key;
|
||||
void *value;
|
||||
u64 hash;
|
||||
struct fixed_dict_entry *next;
|
||||
@ -144,7 +143,6 @@ INLINE void fixed_dict_set(struct arena *arena, struct fixed_dict *dict, struct
|
||||
while (entry) {
|
||||
if (hash == entry->hash) {
|
||||
/* Existing match found, replace its contents */
|
||||
entry->key = key;
|
||||
entry->value = value;
|
||||
return;
|
||||
}
|
||||
@ -153,7 +151,6 @@ INLINE void fixed_dict_set(struct arena *arena, struct fixed_dict *dict, struct
|
||||
|
||||
/* No match found, create new entry */
|
||||
entry = arena_push(arena, struct fixed_dict_entry);
|
||||
entry->key = key;
|
||||
entry->value = value;
|
||||
entry->hash = hash;
|
||||
entry->next = bin->entry_head;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user