From 87328f788d6eccfc1c785ef1dbb156645cd73ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 20 Jul 2020 21:14:09 +0200 Subject: [PATCH] Update TODO --- TODO.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/TODO.md b/TODO.md index 96d22e3..2ddc5ad 100644 --- a/TODO.md +++ b/TODO.md @@ -28,13 +28,6 @@ * vec reserve * test multiple scrape hashes * test with strange/bad inputs, with and without quickcheck - * maybe do crazy http parsing: check for newline with memchr, take slice until - there. then iter over space newlines/just take relevant data: - ``` - let before_path = iter.next()?; - let after_path = iter.next()?; - let path = buffer[a+1..b] // then add some security checks - ``` * test torrent transfer with real clients * test tls * current serialized byte strings valid @@ -74,6 +67,9 @@ * deserialize 20 bytes: possibly rewrite (just check length of underlying bytes == 20 and then copy them), also maybe remove String from map for these cases too. doesn't really improve performance + * crazy http parsing: check for newline with memchr, take slice until + there. then iter over space newlines/just take relevant data. Not faster + than httparse and a lot worse ## aquatic_ws * is 'key' sent in announce request? if so, maybe handle it like in