1
0
Fork 0
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:
Andras Mocsary 2019-11-03 20:00:35 +01:00
parent ae2d11d299
commit e65cd393b5
6 changed files with 18 additions and 6 deletions

View file

@ -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"

View file

@ -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;

View file

@ -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.

View file

@ -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;

View file

@ -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;

View file

@ -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;