@@ -46,7 +46,7 @@ template = ["dep:sailfish"]
4646# io-uring optional
4747io-uring = [" dep:tokio-uring" , " xitca-http/io-uring" , " xitca-server/io-uring" ]
4848# unrealistic performance optimization
49- perf = [" dep:mimalloc" , " tokio/parking_lot" ]
49+ perf = [" dep:core_affinity " , " dep: mimalloc" , " tokio/parking_lot" ]
5050
5151[dependencies ]
5252xitca-http = " 0.7"
@@ -81,13 +81,14 @@ sailfish = { version = "0.9", default-features = false, features = ["perf-inline
8181tokio-uring = { version = " 0.5" , optional = true }
8282
8383# perf optional
84+ core_affinity = { version = " 0.8.1" , optional = true }
8485mimalloc = { version = " 0.1" , default-features = false , optional = true }
8586
8687# stuff can not be used or not needed in wasi target
8788[target .'cfg(not(target_family = "wasm"))' .dependencies ]
8889futures-core = { version = " 0.3" , default-features = false }
8990rand = { version = " 0.8" , features = [" small_rng" ] }
90- tokio = " 1"
91+ tokio = " 1.41 "
9192
9293[profile .release ]
9394lto = true
@@ -100,11 +101,10 @@ xitca-postgres-diesel = { git = "https://github.com/fakeshadow/xitca-postgres-di
100101
101102diesel-async = { git = " https://github.com/weiznich/diesel_async" , rev = " 5b8262b" }
102103mio = { git = " https://github.com/fakeshadow/mio" , rev = " 9bae6012b7ecfc6083350785f71a5e8265358178" }
103- tokio = { git = " https://github.com/tokio-rs/tokio.git" , rev = " 512e9de" }
104-
105- xitca-codegen = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
106- xitca-http = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
107- xitca-postgres = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
108- xitca-server = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
109- xitca-service = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
110- xitca-web = { git = " http://github.com/HFQR/xitca-web" , rev = " 1de8d9c" }
104+
105+ xitca-codegen = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
106+ xitca-http = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
107+ xitca-postgres = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
108+ xitca-server = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
109+ xitca-service = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
110+ xitca-web = { git = " http://github.com/HFQR/xitca-web" , rev = " 3b005af" }
0 commit comments