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

1
Cargo.lock generated
View file

@ -81,6 +81,7 @@ dependencies = [
"hashbrown",
"httparse",
"indexmap",
"itoa",
"log",
"mimalloc",
"mio",