From 4fd936ffa01cc7a06bf9ba465d399eb76471569d Mon Sep 17 00:00:00 2001 From: Simon Van de Vyver Date: Fri, 25 Oct 2024 10:33:09 +0200 Subject: [PATCH] set max sparseness to 5 --- sa-builder/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa-builder/src/lib.rs b/sa-builder/src/lib.rs index 92c4b09..50bfe06 100644 --- a/sa-builder/src/lib.rs +++ b/sa-builder/src/lib.rs @@ -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, sparseness_factor: u8) -> Result, &str> { let sparseness_factor = sparseness_factor as usize;