aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-08-01 11:26:09 +1200
committerAldo Cortesi <aldo@nullcube.com>2011-08-01 11:26:09 +1200
commit675b3133b482492ce5f5f051cf9a01658568c675 (patch)
tree879bcd5f83e23fee2a54574edac8076bf922347d /libmproxy
parent43f1c72511e3f68172ea16f742506693b8feff4c (diff)
downloadmitmproxy-675b3133b482492ce5f5f051cf9a01658568c675.tar.gz
mitmproxy-675b3133b482492ce5f5f051cf9a01658568c675.tar.bz2
mitmproxy-675b3133b482492ce5f5f051cf9a01658568c675.zip
Improve performance of loading flows from a file hugely.
Fell into the "expensive __eq__ method" trap. Oh, Python, you little scamp.
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/flow.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py
index c15f4566..bbdd21a6 100644
--- a/libmproxy/flow.py
+++ b/libmproxy/flow.py
@@ -193,9 +193,6 @@ class Flow:
f.load_state(state)
return f
- def __eq__(self, other):
- return self.get_state() == other.get_state()
-
def script_serialize(self):
data = self.get_state()
return json.dumps(data)