Skip to content

Commit

Permalink
Revert "give a better estimate in WhiteListBlueprint"
Browse files Browse the repository at this point in the history
  • Loading branch information
toregge authored Jan 3, 2025
1 parent f5e1b12 commit 91bd3c1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ class WhiteListBlueprint : public SimpleLeafBlueprint
return create_search_helper(strict());
}
public:
WhiteListBlueprint(const search::BitVector &activeLids, bool all_lids_active, uint32_t numActiveLids)
WhiteListBlueprint(const search::BitVector &activeLids, bool all_lids_active)
: SimpleLeafBlueprint(),
_activeLids(activeLids),
_all_lids_active(all_lids_active),
_lock(),
_matchDataVector()
{
setEstimate(HitEstimate(numActiveLids, false));
setEstimate(HitEstimate(_activeLids.size(), false));
}

bool isWhiteList() const noexcept final { return true; }
Expand All @@ -253,8 +253,7 @@ Blueprint::UP
LidAllocator::createWhiteListBlueprint() const
{
return std::make_unique<WhiteListBlueprint>(_activeLids.getBitVector(),
(getNumUsedLids() == getNumActiveLids()),
getNumActiveLids());
(getNumUsedLids() == getNumActiveLids()));
}

void
Expand Down

0 comments on commit 91bd3c1

Please sign in to comment.