Binpack Reader
Rust port of the Stockfish binpack reader from the C++ version.
Compile
If your machine has the fast BMI2 instruction set (Zen 3+), you should enable the feature flag
;
or define it in your Cargo.toml file (change version).
[dependencies]
binpack = { version = "0.1.0", features = ["bmi2"] }
Usage
use CompressedTrainingDataEntryReader;
If you are doing some counting keep in mind to use a u64 type for the counter.
Performance Comparison
Slightly faster when compiled with bmi2 because of _pdep_u64 trick which is missing in the upstream version.
License
GNU General Public License v3.0