diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:39:26 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:39:26 +0100 |
| commit | 8f520e52d7d4081a0835374c7a448116baac64ab (patch) | |
| tree | fdb3c2e8d49aa8c94d6fff357ef2d18f3e0e553c /Makefile | |
| parent | 7419a9524754dfc4222de2c4e4c22808b571477d (diff) | |
Turn the bucket count into a knob, but keep cleaner wake-ups at a constant rate
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -20,6 +20,12 @@ STRIP?=strip | |||
| 20 | #FEATURES+=-DWANT_DEV_RANDOM | 20 | #FEATURES+=-DWANT_DEV_RANDOM |
| 21 | FEATURES+=-DWANT_FULLSCRAPE | 21 | FEATURES+=-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. | ||
| 27 | FEATURES+=-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 | ||
