summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 338e4e6..7292d36 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -62,7 +62,12 @@ typedef struct {
62 62
63/* We maintain a list of 1024 pointers to sorted list of ot_torrent structs 63/* We maintain a list of 1024 pointers to sorted list of ot_torrent structs
64 Sort key is, of course, its hash */ 64 Sort key is, of course, its hash */
65/* Set from the Makefile, 8 to 16. More buckets means shorter vectors and a
66 cheaper insert, which only pays for a tracker carrying millions of
67 torrents; see DESIGN. */
68#ifndef OT_BUCKET_COUNT_BITS
65#define OT_BUCKET_COUNT_BITS 10 69#define OT_BUCKET_COUNT_BITS 10
70#endif
66 71
67#define OT_BUCKET_COUNT (1 << OT_BUCKET_COUNT_BITS) 72#define OT_BUCKET_COUNT (1 << OT_BUCKET_COUNT_BITS)
68#define OT_BUCKET_COUNT_SHIFT (32 - OT_BUCKET_COUNT_BITS) 73#define OT_BUCKET_COUNT_SHIFT (32 - OT_BUCKET_COUNT_BITS)