[or-cvs] add TOR_PERF macro options
Roger Dingledine
arma at seul.org
Tue Jan 20 02:14:33 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
or.h
Log Message:
add TOR_PERF macro options
Index: or.h
===================================================================
RCS file: /home/or/cvsroot/src/or/or.h,v
retrieving revision 1.219
retrieving revision 1.220
diff -u -d -r1.219 -r1.220
--- or.h 10 Jan 2004 23:40:38 -0000 1.219
+++ or.h 20 Jan 2004 02:14:30 -0000 1.220
@@ -108,7 +108,11 @@
#define MAX_NICKNAME_LEN 32
#define MAX_DIR_SIZE 500000
+#ifdef TOR_PERF
+#define MAX_DNS_ENTRY_AGE (150*60)
+#else
#define MAX_DNS_ENTRY_AGE (15*60)
+#endif
#define CIRC_ID_TYPE_LOWER 0
#define CIRC_ID_TYPE_HIGHER 1
@@ -210,11 +214,17 @@
#define EDGE_AP CONN_TYPE_AP
#define CELL_DIRECTION(x) ((x) == EDGE_EXIT ? CELL_DIRECTION_IN : CELL_DIRECTION_OUT)
+#ifdef TOR_PERF
+#define CIRCWINDOW_START 10000
+#define CIRCWINDOW_INCREMENT 1000
+#define STREAMWINDOW_START 5000
+#define STREAMWINDOW_INCREMENT 500
+#else
#define CIRCWINDOW_START 1000
#define CIRCWINDOW_INCREMENT 100
-
#define STREAMWINDOW_START 500
#define STREAMWINDOW_INCREMENT 50
+#endif
/* cell commands */
#define CELL_PADDING 0
More information about the tor-commits
mailing list