diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 21:09:08 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 21:11:30 +1300 |
commit | daf355bb4c7e7e1574d2977a49503eb6db2faa4a (patch) | |
tree | fecff428d6d1a19d303c779d0169ef6d6a1226cd /docs/tutorials | |
parent | 9abfb1aac27e28619c58d40ec050cc46fda2b30f (diff) | |
download | mitmproxy-daf355bb4c7e7e1574d2977a49503eb6db2faa4a.tar.gz mitmproxy-daf355bb4c7e7e1574d2977a49503eb6db2faa4a.tar.bz2 mitmproxy-daf355bb4c7e7e1574d2977a49503eb6db2faa4a.zip |
console: add caching sort keys
This is a tad complicated. The underlying sorted list implementation expects
the sort key to be stable for the lifetime of the object. However, if we sort
by size, for instance, the sort order changes as the flow progresses through
its lifecycle. We address this through two means:
- Let order keys cache the sort value by flow ID.
- Add a facility to refresh items in the list by removing and re-adding them
when they are updated.
Diffstat (limited to 'docs/tutorials')
0 files changed, 0 insertions, 0 deletions