mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws: deserialize InMessage with simd-json for performance
From 18% to 13% CPU time during load test run. Criterion benchmark of deserialization got about 90% improvement.
This commit is contained in:
parent
539cf03f93
commit
5d40954936
11 changed files with 1098 additions and 1031 deletions
|
|
@ -195,8 +195,8 @@ pub fn run_handshakes_and_read_messages(
|
|||
use ::tungstenite::Error::Io;
|
||||
|
||||
match established_ws.ws.read_message(){
|
||||
Ok(ws_message) => {
|
||||
if let Ok(in_message) = InMessage::from_ws_message(&ws_message){
|
||||
Ok(mut ws_message) => {
|
||||
if let Ok(in_message) = InMessage::from_ws_message(&mut ws_message){
|
||||
let naive_peer_addr = established_ws.peer_addr;
|
||||
let converted_peer_ip = convert_ipv4_mapped_ipv6(
|
||||
naive_peer_addr.ip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue