mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Our tests showed that this function is responsible for a huge number of our malloc/free() calls. It's a prime candidate for being memoized. Closes ticket 27225.
5 lines
292 B
Text
5 lines
292 B
Text
o Minor features (performance):
|
|
- Avoid parsing the same protocol-versions string over and over
|
|
in summarize_protover_flags(). This should save us a huge number
|
|
of malloc calls on startup, and may reduce memory fragmentation with
|
|
some allocators. Closes ticket 27225.
|