Skip to content

Commit

Permalink
Add tuning for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Mar 3, 2022
1 parent 8db7635 commit d77bf05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "idlset"
version = "0.2.1"
version = "0.2.2"
authors = ["William Brown <[email protected]>"]
edition = "2021"

Expand Down
3 changes: 3 additions & 0 deletions src/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const DEFAULT_SPARSE_ALLOC: usize = 2;

// After a lot of benchmarking, the cross over point is when there is an average
// of 12 bits set in a compressed range for general case to be faster.
#[cfg(target_arch = "x86_64")]
const AVG_RANGE_COMP_REQ: usize = 12;
#[cfg(target_arch = "aarch64")]
const AVG_RANGE_COMP_REQ: usize = 5;

const FAST_PATH_BST_RATIO: usize = 8;
const FAST_PATH_BST_SIZE: usize = 8;
Expand Down

0 comments on commit d77bf05

Please sign in to comment.