diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-13 23:09:49 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-13 23:09:49 -0800 |
commit | 9a47a5d9b3d98c5c029ca6043f967c55ddf70efb (patch) | |
tree | 281b6ee6e502491b2248806cefd95d8c6b2cfacd /src/enzymatic.js | |
parent | 1af4b1405eb497741aa63e0a9421d47f6166287a (diff) |
clean up tokens early to save memory
Diffstat (limited to 'src/enzymatic.js')
-rw-r--r-- | src/enzymatic.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/enzymatic.js b/src/enzymatic.js index cbc111f5..e6af4ab5 100644 --- a/src/enzymatic.js +++ b/src/enzymatic.js @@ -109,6 +109,7 @@ Substrate.prototype = { finished = true; finalResult = outputs[0]; } else { + outputs.forEach(function(output) { delete output.tokens }); // clean up tokens to save memory that.results = that.results.concat(outputs); } } |