diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2021-02-12 14:17:32 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-12 22:42:01 +0000 |
commit | b457f25a1f770e8a0f34989c3e5f0fac9a4cd29d (patch) | |
tree | 5e12b79ef171c9102f0e1979c9fab53f3ad46a8f | |
parent | b8cd0ef00f5ef5cf978317cf4cee16ac100c860b (diff) | |
download | mongo-b457f25a1f770e8a0f34989c3e5f0fac9a4cd29d.tar.gz |
SERVER-54093 Optimize allocation in javascript_heap_limit.js
-rw-r--r-- | jstests/sharding/query/javascript_heap_limit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/query/javascript_heap_limit.js b/jstests/sharding/query/javascript_heap_limit.js index c08c4fdd778..32762653f8d 100644 --- a/jstests/sharding/query/javascript_heap_limit.js +++ b/jstests/sharding/query/javascript_heap_limit.js @@ -27,8 +27,8 @@ function setHeapSizeLimitMB({db, queryLimit, globalLimit}) { } function allocateLargeString() { - const arraySize = 10000000; - let str = new Array(arraySize).join("x"); + const arraySize = 1000000; + let str = new Array(arraySize).fill(0); return true; } |