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",
|
||||
"bytes",
|
||||
"criterion",
|
||||
"hashbrown",
|
||||
"prometheus",
|
||||
"rand 0.8.3",
|
||||
"tokio",
|
||||
|
@ -24,6 +24,7 @@ rand = { version = "0.8" }
|
||||
# async traits
|
||||
async-trait = "0.1.42"
|
||||
bytes = "^1"
|
||||
hashbrown = { version = ">=0.9, <0.12" }
|
||||
|
||||
[dev-dependencies]
|
||||
async-channel = "1.5.1"
|
||||
|
@ -12,10 +12,8 @@ use crate::{
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use bytes::BytesMut;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use hashbrown::HashMap;
|
||||
use std::time::{Duration, Instant};
|
||||
use tracing::info;
|
||||
#[cfg(feature = "trace_pedantic")]
|
||||
use tracing::trace;
|
||||
|
@ -11,10 +11,8 @@ use crate::{
|
||||
};
|
||||
use async_trait::async_trait;
|
||||
use bytes::BytesMut;
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use hashbrown::HashMap;
|
||||
use std::time::{Duration, Instant};
|
||||
use tracing::info;
|
||||
#[cfg(feature = "trace_pedantic")]
|
||||
use tracing::trace;
|
||||
|
Loading…
Reference in New Issue
Block a user