mirror of
https://github.com/actix/actix-web.git
synced 2025-04-05 01:29:36 +00:00
Use Ahash
This commit is contained in:
parent
ae2d11d299
commit
e65cd393b5
6 changed files with 18 additions and 6 deletions
|
@ -54,6 +54,7 @@ actix-utils = "0.4.4"
|
|||
actix-server-config = "0.1.2"
|
||||
actix-threadpool = "0.1.1"
|
||||
|
||||
ahash = { version = "0.2", features = ["std"] }
|
||||
base64 = "0.10"
|
||||
bitflags = "1.0"
|
||||
bytes = "0.4"
|
||||
|
@ -62,6 +63,7 @@ derive_more = "0.15.0"
|
|||
either = "1.5.2"
|
||||
encoding_rs = "0.8"
|
||||
futures = "0.1.25"
|
||||
hashbrown = "0.6.0"
|
||||
h2 = "0.1.16"
|
||||
http = "0.1.17"
|
||||
httparse = "1.3"
|
||||
|
|
|
@ -12,7 +12,9 @@ use futures::task::AtomicTask;
|
|||
use futures::unsync::oneshot;
|
||||
use futures::{Async, Future, Poll};
|
||||
use h2::client::{handshake, Handshake};
|
||||
use std::collections::HashMap;
|
||||
// use std::collections::HashMap;
|
||||
// use ahash::AHashMap as HashMap;
|
||||
use hashbrown::HashMap;
|
||||
use http::uri::Authority;
|
||||
use indexmap::IndexSet;
|
||||
use slab::Slab;
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
use std::any::{Any, TypeId};
|
||||
use std::fmt;
|
||||
|
||||
use std::collections::HashMap;
|
||||
// use std::collections::HashMap;
|
||||
// use ahash::AHashMap as HashMap;
|
||||
use hashbrown::HashMap;
|
||||
|
||||
#[derive(Default)]
|
||||
/// A type map of request extensions.
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
use either::Either;
|
||||
use std::collections::hash_map::{self, Entry};
|
||||
use std::collections::HashMap;
|
||||
// use std::collections::hash_map::{self, Entry};
|
||||
// use std::collections::HashMap;
|
||||
// use ahash::AHashMap as HashMap;
|
||||
use hashbrown::hash_map::{self, Entry};
|
||||
use hashbrown::HashMap;
|
||||
use http::header::{HeaderName, HeaderValue};
|
||||
use http::HttpTryFrom;
|
||||
|
||||
|
|
|
@ -47,7 +47,8 @@ use std::rc::Rc;
|
|||
|
||||
use actix_web::dev::{Extensions, Payload, ServiceRequest, ServiceResponse};
|
||||
use actix_web::{Error, FromRequest, HttpMessage, HttpRequest};
|
||||
use std::collections::HashMap;
|
||||
// use std::collections::HashMap;
|
||||
use hashbrown::HashMap;
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde::Serialize;
|
||||
use serde_json;
|
||||
|
|
|
@ -2,7 +2,9 @@ use std::cell::RefCell;
|
|||
use std::rc::Rc;
|
||||
|
||||
use actix_router::ResourceDef;
|
||||
use std::collections::HashMap;
|
||||
// use std::collections::HashMap;
|
||||
// use hashbrown::HashMap;
|
||||
use ahash::AHashMap as HashMap;
|
||||
use url::Url;
|
||||
|
||||
use crate::error::UrlGenerationError;
|
||||
|
|
Loading…
Reference in a new issue