summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2015-01-12 10:17:13 +0100
committerjmoenig <jens@moenig.org>2015-01-12 10:17:13 +0100
commit04ffda276e0294996431da8aca3584918873ae4f (patch)
tree47f6bf8b362606635c3cd365c48d860116b29ade
parent50e84f8890079c45bb32e001eece4c3544fd1641 (diff)
downloadsnap-yow-04ffda276e0294996431da8aca3584918873ae4f.tar.gz
snap-yow-04ffda276e0294996431da8aca3584918873ae4f.zip
Speed up messages received by clones
Don’t highlight scripts running inside clones (boosts performance), Thanks, @aranlunzer, for the hint!
-rw-r--r--threads.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/threads.js b/threads.js
index 791d81c..555e531 100644
--- a/threads.js
+++ b/threads.js
@@ -9,7 +9,7 @@
written by Jens Mönig
jens@moenig.org
- Copyright (C) 2014 by Jens Mönig
+ Copyright (C) 2015 by Jens Mönig
This file is part of Snap!.
@@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/
// Global stuff ////////////////////////////////////////////////////////
-modules.threads = '2014-December-17';
+modules.threads = '2014-January-12';
var ThreadManager;
var Process;
@@ -159,9 +159,11 @@ ThreadManager.prototype.startProcess = function (
active.stop();
this.removeTerminatedProcesses();
}
- top.addHighlight();
newProc = new Process(block.topBlock(), callback);
newProc.exportResult = exportResult;
+ if (!newProc.homeContext.receiver.isClone) {
+ top.addHighlight();
+ }
this.processes.push(newProc);
return newProc;
};