feat: change fxhash to ahash for hashmaps and hashsets
This commit is contained in:
		
					parent
					
						
							
								504f5e54a9
							
						
					
				
			
			
				commit
				
					
						c0fcee71cf
					
				
			
		
					 18 changed files with 19 additions and 20 deletions
				
			
		|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jun Kurihara
				Jun Kurihara