[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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;