]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Wasted too much space for minimum element count. Now minimum elements in vektor is...
authorerdgeist <>
Thu, 1 Feb 2007 16:06:17 +0000 (16:06 +0000)
committererdgeist <>
Thu, 1 Feb 2007 16:06:17 +0000 (16:06 +0000)
trackerlogic.h

index c85c5207700814752edc53ec8cee8b96e4845413..6f0e09bb4339e9218e328c68badb043bda1a81a6 100644 (file)
@@ -38,10 +38,10 @@ typedef time_t         ot_time;
 #define OT_POOLS_TIMEOUT 300
 #define NOW              (time(NULL)/OT_POOLS_TIMEOUT)
 
-#define OT_VECTOR_MIN_MEMBERS   128
-#define OT_VECTOR_GROW_RATIO    2
-#define OT_VECTOR_SHRINK_THRESH 3
-#define OT_VECTOR_SHRINK_RATIO  2
+#define OT_VECTOR_MIN_MEMBERS   16
+#define OT_VECTOR_GROW_RATIO    4
+#define OT_VECTOR_SHRINK_THRESH 5
+#define OT_VECTOR_SHRINK_RATIO  4
 typedef struct {
   void   *data;
   size_t  size;