Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVandeVyver committed Oct 24, 2024
1 parent aa6ef9f commit b9064e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sa-builder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pub fn build_ssa(
Ok(sa)
}

// 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 = 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 b9064e6

Please sign in to comment.