Files
mirror-3x-ui/internal/util
Sanaei 267379456a chore(wirecodec): pin the node encoder's retained-memory budget
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.
2026-11-30 23:20:38 +03:30
..
2026-06-28 18:10:38 +02:00