MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / tryResizeHashTables

Function tryResizeHashTables

src/server.cpp:1681–1683  ·  view source on GitHub ↗

If the percentage of used slots in the HT reaches HASHTABLE_MIN_FILL * we resize the hash table to save memory */

Source from the content-addressed store, hash-verified

1679/* If the percentage of used slots in the HT reaches HASHTABLE_MIN_FILL
1680 * we resize the hash table to save memory */
1681void tryResizeHashTables(int dbid) {
1682 g_pserver->db[dbid]->tryResize();
1683}
1684
1685/* Our hash table implementation performs rehashing incrementally while
1686 * we write/read from the hash table. Still if the server is idle, the hash

Callers 1

databasesCronFunction · 0.85

Calls 1

tryResizeMethod · 0.80

Tested by

no test coverage detected