mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2026-07-09 02:16:24 +00:00
Switch zstd encoder from simple API (ZSTD_compress) to advanced API (ZSTD_CCtx + ZSTD_compress2) with configurable worker threads via ZSTD_c_nbWorkers. Consumer controls threading through threads=N option string parameter. Default is 1 (single-threaded, bit-identical output to previous behavior). - Enable ZSTD_MULTITHREAD compile definition and link pthreads - Add num_threads field to options struct and context - Parse threads=N in option string (clamped >= 1) - Rewrite aaruf_zstd_encode_buffer() with num_threads parameter - Update all call sites (write.c, close.c)