commit 460ee5df90a0b3dbb560b608ba3141fa82a0575a Author: Damian Johnson atagar@torproject.org Date: Sat Oct 28 18:18:22 2017 -0700
Drop validation from controller descriptors
Dropping validation when we receive it from the control port. This makes a particularly big impact in performance for NEWCONSENSUS events. --- stem/control.py | 1 - stem/response/events.py | 2 -- 2 files changed, 3 deletions(-)
diff --git a/stem/control.py b/stem/control.py index 763c6dab..416deb0a 100644 --- a/stem/control.py +++ b/stem/control.py @@ -1987,7 +1987,6 @@ class Controller(BaseController):
desc_iterator = stem.descriptor.router_status_entry._parse_file( io.BytesIO(desc_content), - True, entry_class = desc_class, )
diff --git a/stem/response/events.py b/stem/response/events.py index 8392250b..a0a20f5b 100644 --- a/stem/response/events.py +++ b/stem/response/events.py @@ -774,7 +774,6 @@ class NetworkStatusEvent(Event):
self.desc = list(stem.descriptor.router_status_entry._parse_file( io.BytesIO(str_tools._to_bytes(content)), - True, entry_class = stem.descriptor.router_status_entry.RouterStatusEntryV3, ))
@@ -818,7 +817,6 @@ class NewConsensusEvent(Event):
self.desc = list(stem.descriptor.router_status_entry._parse_file( io.BytesIO(str_tools._to_bytes(content)), - True, entry_class = stem.descriptor.router_status_entry.RouterStatusEntryV3, ))
tor-commits@lists.torproject.org