Memoize summarize_protover_flags()
commit6d93820499a8bfb19128759893b18c1437f99c6b
authorNick Mathewson <nickm@torproject.org>
Fri, 19 Oct 2018 19:04:45 +0000 (19 15:04 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2018 15:47:07 +0000 (7 10:47 -0500)
treeffd69acf9824b9c39d2ffd33f9b5e39e71512878
parent275e831ceac6382aafb1186976a3edfadcd0c87e
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.
changes/ticket27225 [new file with mode: 0644]
src/app/main/main.c
src/core/or/versions.c
src/core/or/versions.h