[tor-bugs] #12859 [Stem]: Improve parsing speed with profile-directed code tuning
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Aug 14 01:46:47 UTC 2014
#12859: Improve parsing speed with profile-directed code tuning
-----------------------------+--------------------
Reporter: nickm | Owner: atagar
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Resolution: | Keywords:
Actual Points: | Parent ID:
Points: |
-----------------------------+--------------------
Comment (by nickm):
Actually, you could tighten up the new regex in 0002 even more. In my
profiles, it's faster still to use:
{{{
match_re = re.compile(r'^(%s)(?:[ \t]|$)' % "|".join(keywords))
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12859#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list