mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
6d93820499
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.
6 lines
292 B
Plaintext
6 lines
292 B
Plaintext
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.
|