aquatic_http: send_response: use itoa and Vec::with_capacity

This leads to fewer allocations and possibly better performance.
This commit is contained in:
Joakim Frostegård 2020-07-18 03:03:39 +02:00
parent 8ddccb20aa
commit f94c52da77
3 changed files with 44 additions and 4 deletions

View file

@ -24,6 +24,7 @@ flume = "0.7"
hashbrown = { version = "0.7", features = ["serde"] }
httparse = "1"
indexmap = "1"
itoa = "0.4"
log = "0.4"
mimalloc = { version = "0.1", default-features = false }
mio = { version = "0.7", features = ["tcp", "os-poll", "os-util"] }