[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs