[tor-bugs] #27225 [Core Tor/Tor]: Perform fewer allocations in summarize_protocol_flags()

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 20 20:38:23 UTC 2018


#27225: Perform fewer allocations in summarize_protocol_flags()
-------------------------+-------------------------------------------------
     Reporter:  nickm    |      Owner:  (none)
         Type:  defect   |     Status:  new
     Priority:  Medium   |  Milestone:  Tor: 0.3.5.x-final
    Component:  Core     |    Version:
  Tor/Tor                |   Keywords:  035-roadmap-master, 035-triaged-
     Severity:  Normal   |  in-20180711
Actual Points:           |  Parent ID:  #26630
       Points:           |   Reviewer:
      Sponsor:           |
  Sponsor8               |
-------------------------+-------------------------------------------------
 According to our profiles, summarize_protocol_flags() does a huge number
 of allocations -- probably because it parses the same flags over and over.

 Probably it would be simplest just to memoize the output.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27225>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list