aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-07 19:05:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-07 19:05:41 -0800
commit227bc37b839f8a28185292f3906c0acd787be2a2 (patch)
tree9878493d2ac40d2ef07f724d84b0c747f5851565
parent6c5cc41f83eaadd347569951084856f3e3a01a62 (diff)
tweak memory growth parameter to 2
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 312aac24..eb55defb 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -552,7 +552,7 @@ function enlargeMemory() {
assert(TOTAL_MEMORY > 4); // So the loop below will not be infinite
#endif
while (TOTAL_MEMORY <= STATICTOP) { // Simple heuristic. Override enlargeMemory() if your program has something more optimal for it
- TOTAL_MEMORY = alignMemoryPage(TOTAL_MEMORY*1.25);
+ TOTAL_MEMORY = alignMemoryPage(2*TOTAL_MEMORY);
}
#if USE_TYPED_ARRAYS == 1
var oldIHEAP = IHEAP;