alexcrichton / xz2-rs

Bindings to liblzma in Rust (xz streams in Rust)
Apache License 2.0
81 stars 52 forks source link

Some defines are missing #81

Open Yuri6037 opened 3 years ago

Yuri6037 commented 3 years ago

The build config is missing some defines:

#define TUKLIB_CPUCORES_SCHED_GETAFFINITY 1
#define TUKLIB_FAST_UNALIGNED_ACCESS 1

I got those by speaking with a LZMA dev.

Currently the first define allows use of lzma_cputhreads and also allows for lzma_physmem. The second define improves performance.