Module bwt_algorithms

Module bwt_algorithms 

Source
Expand description

The bwt_algorithms form the critical sorting subsystem for the Rust version of the standard BZIP2 library.

BZIP2 uses the Burrow-Wheeler Transform (BWT) to prepare data for compression. This transform alters the data in such a way that runs of similar bytes are more likely to occur. This allows for more effective compression.

The Burrow-Wheeler Transform requires “computationally expensive” sorting. Since different sorting algorithms are better suited for different kinds of data, this module contains multiple sorting algorithms. (Currently two are employed, but numerous alternatives were tested.)

Of all the phases involved in BZIP2, this phase has the greatest impact on compression speed.

Modules§

bwt_sort
This is the entry point for the main bwt_sort algorithm and contains the main sorting algorithm.
sais_fallback
The fallback bwt_sort algorithm for the Rust version of the standard BZIP2 library.