summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2015-02-28 05:44:59 -0800
committerJens Mönig <jens@moenig.org>2015-02-28 05:44:59 -0800
commitee88f7ad398fe9867ad1bcf1c2588704fc012151 (patch)
tree13da4a234e997c1de8993280498539c6893ecbdd /gui.js
parent85388f19391aeb2d5ba87d36bbabace55ce842df (diff)
downloadsnap-yow-ee88f7ad398fe9867ad1bcf1c2588704fc012151.tar.gz
snap-yow-ee88f7ad398fe9867ad1bcf1c2588704fc012151.zip
Cache inputs - accelerate recursive reporters
and warped / turbo recursive commands by up to 40%
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index 9fddf4d..75220b3 100644
--- a/gui.js
+++ b/gui.js
@@ -69,7 +69,7 @@ SpeechBubbleMorph*/
// Global stuff ////////////////////////////////////////////////////////
-modules.gui = '2015-February-23';
+modules.gui = '2015-February-28';
// Declarations
@@ -2267,6 +2267,17 @@ IDE_Morph.prototype.settingsMenu = function () {
'check to prioritize\nscript execution'
);
addPreference(
+ 'Cache Inputs',
+ function () {
+ SyntaxElementMorph.prototype.isCachingInputs =
+ !SyntaxElementMorph.prototype.isCachingInputs;
+ },
+ SyntaxElementMorph.prototype.isCachingInputs,
+ 'uncheck to stop caching\ninputs (for debugging the evaluator)',
+ 'check to cache inputs\nboosts recursion',
+ true
+ );
+ addPreference(
'Rasterize SVGs',
function () {
MorphicPreferences.rasterizeSVGs =