summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-11-02 20:39:26 +0100
committerDirk Engling <erdgeist@erdgeist.org>2026-11-02 20:39:26 +0100
commit8f520e52d7d4081a0835374c7a448116baac64ab (patch)
treefdb3c2e8d49aa8c94d6fff357ef2d18f3e0e553c /Makefile
parent7419a9524754dfc4222de2c4e4c22808b571477d (diff)
Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rate
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f124be8..993f0ae 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,12 @@ STRIP?=strip
20#FEATURES+=-DWANT_DEV_RANDOM 20#FEATURES+=-DWANT_DEV_RANDOM
21FEATURES+=-DWANT_FULLSCRAPE 21FEATURES+=-DWANT_FULLSCRAPE
22 22
23# Buckets the torrent table is split into, as a power of two, 8 to 16. More
24# buckets make inserting a new torrent cheaper and cost memory, which is worth
25# it for a tracker carrying millions of torrents and not for one carrying
26# thousands. DESIGN has the measurements.
27FEATURES+=-DOT_BUCKET_COUNT_BITS=10
28
23#FEATURES+=-D_DEBUG_HTTPERROR 29#FEATURES+=-D_DEBUG_HTTPERROR
24#FEATURES+=-D_DEBUG_RANDOMTORRENTS 30#FEATURES+=-D_DEBUG_RANDOMTORRENTS
25 31