From 1372f46e8737c64a3ed4598741ba8fe7290fb4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sat, 4 Feb 2023 15:38:09 +0100 Subject: [PATCH] Update TODO --- TODO.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/TODO.md b/TODO.md index d630ce2..508cda7 100644 --- a/TODO.md +++ b/TODO.md @@ -6,6 +6,13 @@ * udp: support link to arbitrary homepage as well as embedded tracker URL in statistics page * ws: wait for crates release of glommio with membarrier fix (PR #558) * Release new version +* Consider storing torrents in separate IndexMaps. The amount should be a power + of 2 and should be configurable. They could be stored in a Vec and the index + could be calculated by taking the first N bits of the info hash. Each such map + would also store when it was last cleaned. There would then be a small + configurable random chance that when an announce request is being processed, + the map will be cleaned. When doing the normal cleaning round, recently + cleaned maps would be skipped. ## Medium priority