[tor-bugs] #13821 [Stem]: Various optimisations to Stem
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Nov 22 20:58:58 UTC 2014
#13821: Various optimisations to Stem
-------------------------+------------------------
Reporter: oherrala | Owner: atagar
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: | Actual Points:
Parent ID: | Points:
-------------------------+------------------------
Various optimisations to stem to make stem.descriptor.parse_file() faster.
Individual patches attached.
Things learned from doing this:
* cProfile and line_profiler are cool tools used together.
* One should compile regexp outside of functions and loops.
* isinstanceof() is slow. Maybe trust later functions to do the right
thing(TM) and catch exception when type is wrong
* Boringly Python's datetime.datetime.strptime() is slow. Replaced with
regexp.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13821>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list