aboutsummaryrefslogtreecommitdiff
path: root/src/enzymatic.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-05 16:30:28 -0700
committeralon@honor <none@none>2010-09-05 16:30:28 -0700
commit3e6c745b828932f237e472c484bb2ac2abfb8e3e (patch)
treeb53e663c5d4c644ce3cfc02a73e49efabaa9db3b /src/enzymatic.js
parent33059350a3a86885dd4c73f3219162ec54d4c0d5 (diff)
optimize makesplitter
Diffstat (limited to 'src/enzymatic.js')
-rw-r--r--src/enzymatic.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/enzymatic.js b/src/enzymatic.js
index 09c8cfc4..c2c7979e 100644
--- a/src/enzymatic.js
+++ b/src/enzymatic.js
@@ -39,9 +39,9 @@ Substrate.prototype = {
var startTime = Date.now();
var midTime = startTime;
var that = this;
- function midComment() {
+ function midComment(force) {
var curr = Date.now();
- if (curr - midTime > 1000) {
+ if (curr - midTime > 1000 || force) {
print('// Working on ' + that.name_ + ', so far ' + ((curr-startTime)/1000).toString().substr(0,10) + ' seconds. Have ' + that.items.length + ' items.');
midTime = curr;
}
@@ -119,6 +119,7 @@ Substrate.prototype = {
delete item.__uid__;
}
});
+ //midComment(true);
}
}
if (this.items.length === 0) {