From ad2ea0af84ea21f36effd1724be87e25febf6cde Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Tue, 25 Aug 2020 00:34:17 +0200 Subject: [PATCH] Fix chacha performance This reverts a change from #979 that introduced a massive performance regression by disabling SIMD for `rand_chacha`. Likely, the behavior of `ppv-lite86` should rather be fixed. This change serves as a workaround until a fixed version is available. Fixes #1017. --- rand_chacha/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_chacha/Cargo.toml b/rand_chacha/Cargo.toml index 9190b7fcaad..2a17aa172bc 100644 --- a/rand_chacha/Cargo.toml +++ b/rand_chacha/Cargo.toml @@ -20,7 +20,7 @@ appveyor = { repository = "rust-random/rand" } [dependencies] rand_core = { path = "../rand_core", version = "0.5" } -ppv-lite86 = { version = "0.2.8", default-features = false } +ppv-lite86 = { version = "0.2.8", default-features = false, features = ["simd"] } [features] default = ["std"]