Bug 1532838 - Set minimum nursery size to 256KB r=jonco

Differential Revision: https://phabricator.services.mozilla.com/D29816

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Bone 2019-05-06 03:16:06 +00:00
parent d3857d4888
commit cc7e371160
2 changed files with 6 additions and 5 deletions

View File

@ -289,10 +289,11 @@ static const size_t MaxMallocBytes = 128 * 1024 * 1024;
/*
* JSGC_MIN_NURSERY_BYTES
*
* 192K is conservative, not too low that root marking dominates. The Limit
* should be a multiple of Nursery::SubChunkStep.
* With some testing (Bug 1532838) we increased this to 256K from 192K
* which improves performance. We should try to reduce this for background
* tabs.
*/
static const size_t GCMinNurseryBytes = 192 * 1024;
static const size_t GCMinNurseryBytes = 256 * 1024;
/* JSGC_ALLOCATION_THRESHOLD_FACTOR */
static const float AllocThresholdFactor = 0.9f;

View File

@ -1481,10 +1481,10 @@ pref("javascript.options.mem.max", -1);
// JSGC_MIN_NURSERY_BYTES / JSGC_MAX_NURSERY_BYTES
#if defined(ANDROID) || defined(XP_IOS)
pref("javascript.options.mem.nursery.min_kb", 192);
pref("javascript.options.mem.nursery.min_kb", 256);
pref("javascript.options.mem.nursery.max_kb", 4096);
#else
pref("javascript.options.mem.nursery.min_kb", 192);
pref("javascript.options.mem.nursery.min_kb", 256);
pref("javascript.options.mem.nursery.max_kb", 16384);
#endif