diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-22 01:44:46 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-22 01:44:46 +0200 |
commit | 84e2a028c24f00ea86205dbfe5b9315c57d5ae3f (patch) | |
tree | 954dc64b16d3fe5f0733410c8a5d10c102f6b313 /web/src/js/stores/flowstore.js | |
parent | 9cda2eb3a3d8da1522a18dc1d0dd6ae5f29f4607 (diff) | |
download | mitmproxy-84e2a028c24f00ea86205dbfe5b9315c57d5ae3f.tar.gz mitmproxy-84e2a028c24f00ea86205dbfe5b9315c57d5ae3f.tar.bz2 mitmproxy-84e2a028c24f00ea86205dbfe5b9315c57d5ae3f.zip |
web: perf improvements
Diffstat (limited to 'web/src/js/stores/flowstore.js')
-rw-r--r-- | web/src/js/stores/flowstore.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/src/js/stores/flowstore.js b/web/src/js/stores/flowstore.js index c7623367..7c0bddbd 100644 --- a/web/src/js/stores/flowstore.js +++ b/web/src/js/stores/flowstore.js @@ -41,6 +41,9 @@ _.extend(FlowView.prototype, EventEmitter.prototype, { if(idx < 0){ this.flows.push(flow); + //if(this.flows.length > 100){ + // this.flows.shift(); + //} } else { this.flows[idx] = flow; } |