reducing maximum cap
This commit is contained in:
parent
061ea53805
commit
66327c28ee
|
@ -202,7 +202,7 @@ if(this['plt'] === undefined) { this['plt'] = {}; }
|
||||||
// temporaries per stack frame.
|
// temporaries per stack frame.
|
||||||
// This will never report a number greater than MAXIMUM_CAP.
|
// This will never report a number greater than MAXIMUM_CAP.
|
||||||
var findStackLimit = function(after) {
|
var findStackLimit = function(after) {
|
||||||
var MAXIMUM_CAP = 100000;
|
var MAXIMUM_CAP = 32768;
|
||||||
var n = 1;
|
var n = 1;
|
||||||
var limitDiscovered = false;
|
var limitDiscovered = false;
|
||||||
setTimeout(
|
setTimeout(
|
||||||
|
@ -321,7 +321,7 @@ if(this['plt'] === undefined) { this['plt'] = {}; }
|
||||||
// second.
|
// second.
|
||||||
var DESIRED_DELAY_BETWEEN_BOUNCES =
|
var DESIRED_DELAY_BETWEEN_BOUNCES =
|
||||||
(1000 / MACHINE.params.desiredYieldsPerSecond);
|
(1000 / MACHINE.params.desiredYieldsPerSecond);
|
||||||
var ALPHA = 256;
|
var ALPHA = 50;
|
||||||
var delta = (ALPHA * ((DESIRED_DELAY_BETWEEN_BOUNCES -
|
var delta = (ALPHA * ((DESIRED_DELAY_BETWEEN_BOUNCES -
|
||||||
observedDelay) /
|
observedDelay) /
|
||||||
DESIRED_DELAY_BETWEEN_BOUNCES));
|
DESIRED_DELAY_BETWEEN_BOUNCES));
|
||||||
|
@ -403,8 +403,10 @@ if(this['plt'] === undefined) { this['plt'] = {}; }
|
||||||
MACHINE,
|
MACHINE,
|
||||||
(new Date()).valueOf() - startTime);
|
(new Date()).valueOf() - startTime);
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function() { trampoline(MACHINE, thunk); },
|
function() {
|
||||||
10);
|
trampoline(MACHINE, thunk);
|
||||||
|
},
|
||||||
|
0);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user