From 91c764d143b56846624c9224f95ebcb9012a8534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Thu, 9 Apr 2020 11:48:00 +0200 Subject: [PATCH] Update TODO --- TODO.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index f036c38..f507e03 100644 --- a/TODO.md +++ b/TODO.md @@ -5,6 +5,7 @@ * Run multiple threads to test performance when contested? * Iterate over whole returned buffer and run e.g. xor on it (.iter().fold()) * Generic bench function since current functions are almost identical + * Show percentile stats for peers per torrent * Tests of aquatic and bittorrent_udp (quickcheck, test cases) ## Not important @@ -26,7 +27,9 @@ * bittorrent_udp * ParseError enum maybe, with `Option` * Avoid heap allocation in general if it can be avoided? - * Optimize bytes to scrape request: Vec::with_capacity or other solution (SmallVec?) + * request from bytes for scrape: use arrayvec with some max size for + torrents? With Vec, allocation takes quite a bit of CPU time + * Optimize bytes to scrape request: Vec::with_capacity or other solution (SmallVec?) # Don't do