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

Method loadNextHit

bolt/exec/HashTable.cpp:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320template <Operation op, typename Table>
321void ProbeState::loadNextHit(Table& table, int32_t firstKey) {
322 const int32_t hit = bits::getAndClearLastSetBit(hits_);
323
324 if (op == Operation::kErase) {
325 indexInTags_ = hit;
326 }
327 group_ = table.row(bucketOffset_, hit);
328 __builtin_prefetch(group_ + firstKey);
329 table.incrementRowLoads();
330}
331
332template <typename Table>
333void ProbeState::eraseHit(Table& table, int64_t& numTombstones) {

Callers

nothing calls this directly

Calls 3

getAndClearLastSetBitFunction · 0.85
incrementRowLoadsMethod · 0.80
rowMethod · 0.45

Tested by

no test coverage detected