Skip to content

Commit

Permalink
Improve value for armv7 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear authored Jul 18, 2022
1 parent 55342a1 commit 1116de9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ const AVG_RANGE_COMP_REQ: usize = 12;
#[cfg(target_arch = "aarch64")]
const AVG_RANGE_COMP_REQ: usize = 5;

// Untested, but covers other build options.
// Tested on armv7 (for now). Set a reasonably conservative target
// for the compression point, because these smaller or non-standard
// cpu's tend to be less optimised and perform *worse* on sparse compressed
// arrays.
#[cfg(not(any(target_arch = "aarch64", target_arch = "x86_64")))]
const AVG_RANGE_COMP_REQ: usize = 5;
const AVG_RANGE_COMP_REQ: usize = 14;

const FAST_PATH_BST_RATIO: usize = 8;

Expand Down

0 comments on commit 1116de9

Please sign in to comment.