aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/stream.py
diff options
context:
space:
mode:
authorBkPHcgQL3V <BkPHcgQL3V@gmx.com>2018-12-17 05:28:23 +0000
committerMaximilian Hils <git@maximilianhils.com>2018-12-17 18:25:14 +0100
commit889987aa0a7f4852758ed09f70fe5d30f733a6d3 (patch)
treef00ed14cb9ed7cc989e8cc363cda8118acd4c122 /examples/complex/stream.py
parente2bcca47b1ad8040451cbd95039acf200e9b0e84 (diff)
downloadmitmproxy-889987aa0a7f4852758ed09f70fe5d30f733a6d3.tar.gz
mitmproxy-889987aa0a7f4852758ed09f70fe5d30f733a6d3.tar.bz2
mitmproxy-889987aa0a7f4852758ed09f70fe5d30f733a6d3.zip
Fix Flow being part of raw_format_flow cache key
raw_format_flow is annotated with the @lru_cache decorator, which creates a cache of the function's return value based on its parameters. Thus, assuming that the first argument (f) contains all the information needed to compute the urwid control for the flow, this effectively caches results. To make most use of this, remove the second parameter representing the real Flow object to improve @lru_cache's efficiency.
Diffstat (limited to 'examples/complex/stream.py')
0 files changed, 0 insertions, 0 deletions