summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorerdgeist <>2007-02-01 16:06:17 +0000
committererdgeist <>2007-02-01 16:06:17 +0000
commit401d0759ab6c2a90cbce5fc63c92c3bc802e3640 (patch)
treea6a8b3a4a7e5120970d02b3d39261f924c5947e5 /trackerlogic.h
parent9882d74b7e0c6b9ebb87cb27b1e53ab7898c2fd2 (diff)
Wasted too much space for minimum element count. Now minimum elements in vektor is 16, it grows and shrinks by a factor of 4 and a shrinking hysteresis of a factor of 5
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index c85c520..6f0e09b 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -38,10 +38,10 @@ typedef time_t ot_time;
38#define OT_POOLS_TIMEOUT 300 38#define OT_POOLS_TIMEOUT 300
39#define NOW (time(NULL)/OT_POOLS_TIMEOUT) 39#define NOW (time(NULL)/OT_POOLS_TIMEOUT)
40 40
41#define OT_VECTOR_MIN_MEMBERS 128 41#define OT_VECTOR_MIN_MEMBERS 16
42#define OT_VECTOR_GROW_RATIO 2 42#define OT_VECTOR_GROW_RATIO 4
43#define OT_VECTOR_SHRINK_THRESH 3 43#define OT_VECTOR_SHRINK_THRESH 5
44#define OT_VECTOR_SHRINK_RATIO 2 44#define OT_VECTOR_SHRINK_RATIO 4
45typedef struct { 45typedef struct {
46 void *data; 46 void *data;
47 size_t size; 47 size_t size;