commit c3205411cf5265473141bd81a941a49603bf63df Merge: 4bf82db 4b98091 Author: Damian Johnson atagar@torproject.org Date: Sat Nov 22 16:03:00 2014 -0800
Performance improvements for parsing descriptor documents
Set of performance improvements from oherrala by regex match constants and avoiding isinstance() checks...
https://trac.torproject.org/projects/tor/ticket/13821
docs/change_log.rst | 2 +- stem/control.py | 3 +- stem/descriptor/extrainfo_descriptor.py | 13 ++++-- stem/descriptor/networkstatus.py | 9 ++-- stem/descriptor/router_status_entry.py | 3 +- stem/descriptor/server_descriptor.py | 3 +- stem/descriptor/tordnsel.py | 8 ++-- stem/response/events.py | 7 ++- stem/util/connection.py | 77 +++++++++++-------------------- stem/util/str_tools.py | 42 +++++++++++++++-- stem/util/tor_tools.py | 40 +++++++++------- test/unit/util/connection.py | 4 +- test/unit/util/tor_tools.py | 30 ++++++++++++ 13 files changed, 143 insertions(+), 98 deletions(-)