From 7e43f4dfe6b69fc0f34629e2904af265c8278b40 Mon Sep 17 00:00:00 2001 From: Dominik Maier Date: Mon, 7 Dec 2020 15:43:27 +0100 Subject: [PATCH] non-static xxh3 is a lot faster --- afl/Cargo.toml | 3 ++- afl/src/utils.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/afl/Cargo.toml b/afl/Cargo.toml index 8719fbc9ff..83accdea15 100644 --- a/afl/Cargo.toml +++ b/afl/Cargo.toml @@ -10,6 +10,7 @@ edition = "2018" criterion = "0.3" # Benchmarking ahash = "0.6.1" # another hash fxhash = "0.2.1" # yet another hash +xxhash-rust = { version = "0.8.0", features = ["const_xxh3", "xxh3"] } # xxh3 hashing for rust [[bench]] name = "rand_speeds" @@ -29,7 +30,7 @@ std = [] hashbrown = { version = "0.9", features = ["serde"] } # A faster hashmap, nostd compatible libc = "0.2" # For (*nix) libc num = "*" -xxhash-rust = { version = "0.8.0", features = ["const_xxh3", "xxh3"] } # xxh3 hashing for rust +xxhash-rust = { version = "0.8.0", features = ["xxh3"] } # xxh3 hashing for rust serde = { version = "1.0", default-features = false, features = ["alloc"] } # serialization lib erased-serde = "0.3.12" postcard = "0.5.1" # no_std compatible serde serialization fromat diff --git a/afl/src/utils.rs b/afl/src/utils.rs index db7eb3b127..be8fbe7491 100644 --- a/afl/src/utils.rs +++ b/afl/src/utils.rs @@ -4,7 +4,7 @@ use alloc::rc::Rc; use core::cell::RefCell; use core::debug_assert; use core::fmt::Debug; -use xxhash_rust::const_xxh3::xxh3_64_with_seed; +use xxhash_rust::xxh3::xxh3_64_with_seed; #[cfg(feature = "std")] use std::time::{SystemTime, UNIX_EPOCH};