Skip to content

Commit

Permalink
set max sparseness to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVandeVyver committed Oct 25, 2024
1 parent d436dfd commit 4fd936f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sa-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn build_ssa(
}

// Max sparseness for libsais because it creates a bucket for each element of the alphabet (2 ^ (sparseness * bits_per_char) buckets).
const MAX_SPARSENESS: usize = 6;
const MAX_SPARSENESS: usize = 5;
fn libsais64(text: &Vec<u8>, sparseness_factor: u8) -> Result<Vec<i64>, &str> {
let sparseness_factor = sparseness_factor as usize;

Expand Down

0 comments on commit 4fd936f

Please sign in to comment.