From 8f520e52d7d4081a0835374c7a448116baac64ab Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 20:39:26 +0100 Subject: Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rate --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f124be8..993f0ae 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,12 @@ STRIP?=strip #FEATURES+=-DWANT_DEV_RANDOM FEATURES+=-DWANT_FULLSCRAPE +# Buckets the torrent table is split into, as a power of two, 8 to 16. More +# buckets make inserting a new torrent cheaper and cost memory, which is worth +# it for a tracker carrying millions of torrents and not for one carrying +# thousands. DESIGN has the measurements. +FEATURES+=-DOT_BUCKET_COUNT_BITS=10 + #FEATURES+=-D_DEBUG_HTTPERROR #FEATURES+=-D_DEBUG_RANDOMTORRENTS -- cgit v1.3