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:
erikcorry 2015-04-22 06:21:27 -07:00 committed by Commit bot
parent 157c64f560
commit b3a8f61256

View File

@ -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.