feat: change fxhash to ahash for hashmaps and hashsets

This commit is contained in:
Jun Kurihara 2025-01-06 17:42:43 +09:00
commit c0fcee71cf
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
18 changed files with 19 additions and 20 deletions

View file

@ -14,12 +14,11 @@ use crate::{
name_exp::ServerName,
};
use hyper_util::server::{self, conn::auto::Builder as ConnectionBuilder};
use rustc_hash::FxHashMap as HashMap;
use rustls::ServerConfig;
use std::sync::Arc;
/// SNI to ServerConfig map type
pub type SniServerCryptoMap = HashMap<ServerName, Arc<ServerConfig>>;
pub type SniServerCryptoMap = std::collections::HashMap<ServerName, Arc<ServerConfig>, ahash::RandomState>;
pub(crate) use proxy_main::Proxy;