on master help sign in
javascript: tweak event scheduling

Events get scheduled way to often which results in a dramatic performance penalty. Making the time slices bigger counteracts that.

commit9b5a218a70c22240ac4afaf4a6d64c57d2a82065 authorraichoo <raichoo@googlemail.com> dateWed 12 Aug 2015, 16:00 (11 years ago) parentf05199f
1 file changed+1−1
jsrts/Runtime-common.js+1−1
jsrts/Runtime-common.js+1−1
@@ -106,7 +106,7 @@ var i$fromCharCode = function(chr) {
106106}
107107
108108var i$RUN = function () {
109− for (var i = 0; i < 1000 && i$callstack.length; i++) {
109+ for (var i = 0; i < 10000 && i$callstack.length; i++) {
110110 var func = i$callstack.pop();
111111 var args = i$callstack.pop();
112112 func.apply(this,args);