]> git.ipfire.org Git - thirdparty/tor.git/commit
Faster circuit_get_by_rend_token_and_purpose()
authorNick Mathewson <nickm@torproject.org>
Fri, 27 Sep 2013 15:54:36 +0000 (11:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 13 Feb 2014 19:44:43 +0000 (14:44 -0500)
commit8b9a2cb68b290e550695124d7ef0511225b451d5
tree13c3ce9603acf7f1168221df432479097fbfd3ea
parent7f6aa780e3183f34b2fa771e17813018e6b28115
Faster circuit_get_by_rend_token_and_purpose()

On busy servers, this function takes up something like 3-7% in
different profiles, and gets invoked every time we need to participate
as the midpoint in a hidden service.

So maybe walking through a linked list of all the circuits here wasn't
a good idea.
changes/bug9841 [new file with mode: 0644]
src/or/circuitlist.c
src/or/circuitlist.h
src/or/or.h
src/or/rendmid.c