diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-10-19 15:04:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-07 10:47:07 -0500 |
commit | 6d93820499a8bfb19128759893b18c1437f99c6b (patch) | |
tree | ffd69acf9824b9c39d2ffd33f9b5e39e71512878 /changes | |
parent | 275e831ceac6382aafb1186976a3edfadcd0c87e (diff) | |
download | tor-6d93820499a8bfb19128759893b18c1437f99c6b.tar.gz tor-6d93820499a8bfb19128759893b18c1437f99c6b.zip |
Memoize summarize_protover_flags()
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.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/ticket27225 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/ticket27225 b/changes/ticket27225 new file mode 100644 index 0000000000..4c05a269d6 --- /dev/null +++ b/changes/ticket27225 @@ -0,0 +1,5 @@ + 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. |