Skip to content

Commit

Permalink
hmap: set max subsequent slot checks to 70% size
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Sep 4, 2020
1 parent e3ac559 commit 7a4b304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void populate_hmap(t_chunk *chunk)
while (get_next_line(&line, chunk))
{
slot = hash(&line) % g_hmap.size;
has_slots = (g_hmap.size * 10) / 8;
has_slots = (g_hmap.size * 7) / 10;
while (has_slots--)
{
if (!LINE_ISSET(g_hmap.ptr[slot]))
Expand Down

0 comments on commit 7a4b304

Please sign in to comment.