MCPcopy Create free account
hub / github.com/bytedance/bolt / allocatedBytes

Method allocatedBytes

bolt/exec/GroupingSet.cpp:942–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940 return false;
941 }
942 if (table_->hashMode() != BaseHashTable::HashMode::kArray) {
943 // Not a kArray table, no rehashing will shrink this.
944 return true;
945 }
946 auto stats = table_->stats();
947 // If we have a large array with sparse data, we rehash this in a
948 // mode that turns off value ranges for kArray mode. Large means
949 // over 1/16 of the space budget and sparse means under 1 entry
950 // per 32 buckets.
951 if (stats.capacity * sizeof(void*) > maxBytes / 16 &&

Callers 7

usedSizeMethod · 0.45
estimateRowSizeMethod · 0.45
totalRowSizeMethod · 0.45
estimateRowSizeMethod · 0.45
spillMethod · 0.45

Calls 1

retainedSizeMethod · 0.45

Tested by

no test coverage detected