Skip to content

Commit

Permalink
chore: change default hashmap bucket size to 1k
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt authored Nov 20, 2024
1 parent 7f73917 commit dcc7324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/pl_ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ COMPILE TIME OPTIONS
PL_DS_ALLOC(x)
PL_DS_FREE(x)
* Change initial hashmap size:
PL_DS_HASHMAP_INITIAL_SIZE (default is 256) // should be power of 2
PL_DS_HASHMAP_INITIAL_SIZE (default is 1024) // should be power of 2
* Change assert by defining:
PL_DS_ASSERT(x)
*/
Expand Down Expand Up @@ -209,7 +209,7 @@ COMPILE TIME OPTIONS
#endif

#ifndef PL_DS_HASHMAP_INITIAL_SIZE
#define PL_DS_HASHMAP_INITIAL_SIZE 256
#define PL_DS_HASHMAP_INITIAL_SIZE 1024
#endif

//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -688,4 +688,4 @@ pl__hm_has_key(plHashMap** pptHashMap, uint64_t ulKey)
return ptHashMap->_aulKeys[ulModKey] != UINT64_MAX;
}

#endif // PL_DS_H
#endif // PL_DS_H

0 comments on commit dcc7324

Please sign in to comment.