mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
switch network/protocol to hashbrown (5% perf increase)
This commit is contained in:
parent
653fb065e0
commit
1ead240ad2
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -5670,6 +5670,7 @@ dependencies = [
|
|||||||
"bitflags",
|
"bitflags",
|
||||||
"bytes",
|
"bytes",
|
||||||
"criterion",
|
"criterion",
|
||||||
|
"hashbrown",
|
||||||
"prometheus",
|
"prometheus",
|
||||||
"rand 0.8.3",
|
"rand 0.8.3",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
@ -24,6 +24,7 @@ rand = { version = "0.8" }
|
|||||||
# async traits
|
# async traits
|
||||||
async-trait = "0.1.42"
|
async-trait = "0.1.42"
|
||||||
bytes = "^1"
|
bytes = "^1"
|
||||||
|
hashbrown = { version = ">=0.9, <0.12" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
async-channel = "1.5.1"
|
async-channel = "1.5.1"
|
||||||
|
@ -12,10 +12,8 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
use std::{
|
use hashbrown::HashMap;
|
||||||
collections::HashMap,
|
use std::time::{Duration, Instant};
|
||||||
time::{Duration, Instant},
|
|
||||||
};
|
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
#[cfg(feature = "trace_pedantic")]
|
#[cfg(feature = "trace_pedantic")]
|
||||||
use tracing::trace;
|
use tracing::trace;
|
||||||
|
@ -11,10 +11,8 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
use std::{
|
use hashbrown::HashMap;
|
||||||
collections::HashMap,
|
use std::time::{Duration, Instant};
|
||||||
time::{Duration, Instant},
|
|
||||||
};
|
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
#[cfg(feature = "trace_pedantic")]
|
#[cfg(feature = "trace_pedantic")]
|
||||||
use tracing::trace;
|
use tracing::trace;
|
||||||
|
Loading…
Reference in New Issue
Block a user