Files
node/doc/api
James Ross fa4af16414 zlib: pledge input size in async zstdCompress()
zstdCompress() writes its input and ends the frame in separate calls,
so zstd cannot infer the input size the way it does for
zstdCompressSync(), and sizes its tables for an unbounded stream.

Default pledgedSrcSize to the input's byte length. The output is now
identical to zstdCompressSync() and several times faster at higher
levels. An explicit pledgedSrcSize, or a string with a custom
defaultEncoding, keeps the current behavior.

Signed-off-by: James Ross <james@jross.me>
PR-URL: https://github.com/nodejs/node/pull/66358
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-09-29 21:23:49 +00:00
..
2026-09-16 20:13:19 +02:00
2026-09-28 04:22:37 +00:00
2026-09-03 11:40:52 +02:00
2026-09-22 10:59:57 +02:00
2026-09-22 10:59:57 +02:00
2026-09-03 15:37:21 +00:00
2026-09-25 20:28:33 +00:00
2025-12-16 20:31:28 +00:00
2026-09-11 13:15:27 -04:00
2026-09-26 21:18:43 +00:00
2026-08-03 11:44:23 +00:00
2026-09-22 10:59:57 +02:00
2026-09-25 20:28:33 +00:00
2026-09-09 18:04:31 +02:00