mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-02 23:45:11 +03:00
267379456a
Two of the three options that bound the encoder had no test. With the worker cap removed, or zstd's low-memory mode dropped, every test stayed green while an encoder built for 64 CPUs retained 154 MiB or 13.7 MiB instead of 9.1 MiB. Only the 1 MiB window was pinned, through the frame header. Build the encoder in newEncoder(cpus) so a test can size it for a many-core host whatever machine runs it, warm every pooled workspace and fail above 12 MiB.