aquatic http protocol: request parsing: remove hashmap for performance

request-from-bytes:

time:   [720.22 ns 723.34 ns 726.73 ns]
change: [-53.265% -52.884% -52.477%] (p = 0.00 < 0.01)

Performance has improved.
This commit is contained in:
Joakim Frostegård 2020-07-21 00:11:03 +02:00
parent 289cc4fcb5
commit 8fea96bcd2
6 changed files with 1057 additions and 1095 deletions

View file

@ -22,7 +22,6 @@
## aquatic_http
* upper limit on request read buffer
* request parsing:
* just skip the hashmap and save data directly into struct?
* smartstring: maybe use for keys? maybe use less? needs benchmarking
* test multiple scrape hashes
* test with strange/bad inputs, with and without quickcheck