mirror of
https://github.com/lz4/lz4.git
synced 2026-10-24 01:48:57 +03:00
LZ4F_getMaxNbWorkers() (static linking only, experimental like nbWorkers) : 0 when liblz4 is built without LZ4F_MULTITHREAD, otherwise the cap of nbWorkers, now 1024 on 64-bit systems and 128 on 32-bit ones (was 200). lz4 : build macro LZ4_NBWORKERS_MAX removed ; worker threads of frame and legacy formats are capped by LZ4F_getMaxNbWorkers(), 1 without liblz4 multi-threading (restores a cap for the legacy format on POSIX). lz4 -V reports "multithread" only when both lz4 and liblz4 support it ; -T# warning and -v note accordingly. VS2022 _test.bat checks the version line, catching a CLI built without LZ4F_MULTITHREAD (same output, so no other observable difference). frameMT : validateMaxNbWorkers ; test builds use LZ4F_NBWORKERS_MAX=128.
13 KiB
13 KiB