[or-cvs] speed up the lookup-by-circid-orconn now that it seems that

arma at seul.org arma at seul.org
Fri Nov 11 19:28:35 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	circuitlist.c 
Log Message:
speed up the lookup-by-circid-orconn now that it seems that
our code works.


Index: circuitlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- circuitlist.c	11 Nov 2005 19:25:29 -0000	1.69
+++ circuitlist.c	11 Nov 2005 19:28:32 -0000	1.70
@@ -366,9 +366,9 @@
   if (found && found->circuit)
     return found->circuit;
 
-  /* The rest of this can be replaced with
-     "return NULL;" once we believe the code works. */
+  return NULL;
 
+  /* The rest of this checks for bugs. Disabled by default. */
   {
     circuit_t *circ;
     for (circ=global_circuitlist;circ;circ = circ->next) {
@@ -590,7 +590,7 @@
       }
       if (!best || (best->build_state->need_uptime && !need_uptime))
         best = circ;
-      next:
+      next: ;
     }
   }
   return best;



More information about the tor-commits mailing list