From b7cdcf34622eff7e2d805452e94883e8bd94f5d6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 6 Apr 2005 05:33:32 +0000 Subject: Hopefully, this will make ORs much faster, and not break them: keep a big splay tree of (circid,orconn)->circuit mappings to make circuit_get_by_circid_conn much faster. svn:r4020 --- src/or/cpuworker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/cpuworker.c') diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index f27de2f429..e820f939be 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -146,7 +146,7 @@ int connection_cpu_process_inbuf(connection_t *conn) { * case there are multiple connections.) */ p_conn = connection_exact_get_by_addr_port(addr,port); if (p_conn) - circ = circuit_get_by_circ_id_conn(circ_id, p_conn); + circ = circuit_get_by_circid_orconn(circ_id, p_conn); if (success == 0) { log_fn(LOG_INFO,"decoding onionskin failed. Closing."); -- cgit v1.2.3-54-g00ecf