mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: rewrite request parsing, use smartstring
Use smartstring in PeerMapKey too. Improves benchmark speed. request-from-path: time: [2.1484 us 2.1530 us 2.1586 us] change: [-24.246% -23.908% -23.570%] (p = 0.00 < 0.01) Performance has improved.
This commit is contained in:
parent
fc9b4c8e0d
commit
9df1f0ecc6
10 changed files with 1069 additions and 1057 deletions
16
Cargo.lock
generated
16
Cargo.lock
generated
|
|
@ -95,6 +95,7 @@ dependencies = [
|
|||
"rand",
|
||||
"serde",
|
||||
"simplelog",
|
||||
"smartstring",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -1644,6 +1645,15 @@ version = "1.4.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c7cb5678e1615754284ec264d9bb5b4c27d2018577fd90ac0ceb578591ed5ee4"
|
||||
|
||||
[[package]]
|
||||
name = "smartstring"
|
||||
version = "0.2.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2bdec7d62192ad94e7b16d49856c007d81ae1cf541cd29b4c04b755df39fd80d"
|
||||
dependencies = [
|
||||
"static_assertions",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "socket2"
|
||||
version = "0.3.12"
|
||||
|
|
@ -1662,6 +1672,12 @@ version = "0.5.2"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
|
||||
|
||||
[[package]]
|
||||
name = "static_assertions"
|
||||
version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "1.0.34"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue