Experiment with smaller minimum elements dictionary size
BUG= Review URL: https://codereview.chromium.org/1094243004 Cr-Commit-Position: refs/heads/master@{#28007}
This commit is contained in:
parent
157c64f560
commit
b3a8f61256
@ -3246,7 +3246,7 @@ DescriptorArray::WhitenessWitness::~WhitenessWitness() {
|
||||
|
||||
|
||||
int HashTableBase::ComputeCapacity(int at_least_space_for) {
|
||||
const int kMinCapacity = 32;
|
||||
const int kMinCapacity = 4;
|
||||
int capacity = base::bits::RoundUpToPowerOfTwo32(at_least_space_for * 2);
|
||||
if (capacity < kMinCapacity) {
|
||||
capacity = kMinCapacity; // Guarantee min capacity.
|
||||
|
Loading…
Reference in New Issue
Block a user