summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-02-21 05:56:53 +0000
committerNick Mathewson <nickm@torproject.org>2007-02-21 05:56:53 +0000
commit2a4fc8533cf059b48b6b509e91331d05ab388240 (patch)
tree67d3bff76dc2ce0898137f0d629e5555e036a2ca /src/or/circuituse.c
parentdd726678b5fecd1044e80bc31ad93ab5d5132e92 (diff)
downloadtor-2a4fc8533cf059b48b6b509e91331d05ab388240.tar.gz
tor-2a4fc8533cf059b48b6b509e91331d05ab388240.zip
r11858@catbus: nickm | 2007-02-21 00:27:44 -0500
As a trivial optimization, remove a redundant call to router_have_minimum_dir_info. This might shave 2% on some systems by according to some profilers. svn:r9610
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 6cc7f54f07..e85b7c0b4a 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -445,7 +445,10 @@ circuit_build_needed_circs(time_t now)
connection_ap_attach_pending();
/* make sure any hidden services have enough intro points */
- if (router_have_minimum_dir_info())
+ /* XXXX012 circuit_build_needed_circs is only called at all if
+ * router_have_minimum_dir_info is true; this check is redundant,
+ * and it appears to show up on some people's profiles. */
+ if (1 || router_have_minimum_dir_info())
rend_services_introduce();
if (time_to_new_circuit < now) {