Add --8-bit-output flag forwarding#2239
Merged
Merged
Conversation
oferchen
added a commit
that referenced
this pull request
May 1, 2026
This was referenced May 15, 2026
oferchen
added a commit
that referenced
this pull request
May 15, 2026
….2 parity) (#4100) * feat: wire --compress-threads=N through to zstd ZSTD_c_nbWorkers Plumb the value parsed in #4095 into the actual zstd encoder via `ZSTD_c_nbWorkers`, matching upstream `token.c:701` so a non-zero `--compress-threads=N` engages real worker threads instead of being silently dropped. - `compress::zstd::CountingZstdEncoder` gains `new_with_workers` / `with_sink_workers` constructors and a `SUPPORTS_MULTITHREAD` const. - `engine::ActiveCompressor::new_with_workers` and `transfer::CompressedWriter::with_workers` thread the value end to end. `LocalCopyOptions` gains `compression_threads` and is populated from `ClientConfig::compression_threads` in `apply_compression`. - Multithreaded zstd lives behind a `zstdmt` Cargo feature on the `compress` crate (off by default to avoid a forced C build cost). Requesting workers without the feature returns `Unsupported` so callers can fall back to single-threaded compression instead of silently discarding the user's request. upstream: options.c:89 do_compression_threads, token.c:701. Refs #2239, #2217. * style: apply rustfmt to zstd worker wiring * fix(compress): avoid Result::unwrap_err since encoder lacks Debug * fix(engine): wire compression_threads through options builder + Debug-safe unwrap * fix(engine): gate unused ActiveCompressor::new behind #[cfg(test)] * fix(transfer): avoid expect_err on CompressedWriter lacking Debug
oferchen
added a commit
that referenced
this pull request
May 18, 2026
….2 parity) (#4100) * feat: wire --compress-threads=N through to zstd ZSTD_c_nbWorkers Plumb the value parsed in #4095 into the actual zstd encoder via `ZSTD_c_nbWorkers`, matching upstream `token.c:701` so a non-zero `--compress-threads=N` engages real worker threads instead of being silently dropped. - `compress::zstd::CountingZstdEncoder` gains `new_with_workers` / `with_sink_workers` constructors and a `SUPPORTS_MULTITHREAD` const. - `engine::ActiveCompressor::new_with_workers` and `transfer::CompressedWriter::with_workers` thread the value end to end. `LocalCopyOptions` gains `compression_threads` and is populated from `ClientConfig::compression_threads` in `apply_compression`. - Multithreaded zstd lives behind a `zstdmt` Cargo feature on the `compress` crate (off by default to avoid a forced C build cost). Requesting workers without the feature returns `Unsupported` so callers can fall back to single-threaded compression instead of silently discarding the user's request. upstream: options.c:89 do_compression_threads, token.c:701. Refs #2239, #2217. * style: apply rustfmt to zstd worker wiring * fix(compress): avoid Result::unwrap_err since encoder lacks Debug * fix(engine): wire compression_threads through options builder + Debug-safe unwrap * fix(engine): gate unused ActiveCompressor::new behind #[cfg(test)] * fix(transfer): avoid expect_err on CompressedWriter lacking Debug
oferchen
added a commit
that referenced
this pull request
May 18, 2026
….2 parity) (#4100) * feat: wire --compress-threads=N through to zstd ZSTD_c_nbWorkers Plumb the value parsed in #4095 into the actual zstd encoder via `ZSTD_c_nbWorkers`, matching upstream `token.c:701` so a non-zero `--compress-threads=N` engages real worker threads instead of being silently dropped. - `compress::zstd::CountingZstdEncoder` gains `new_with_workers` / `with_sink_workers` constructors and a `SUPPORTS_MULTITHREAD` const. - `engine::ActiveCompressor::new_with_workers` and `transfer::CompressedWriter::with_workers` thread the value end to end. `LocalCopyOptions` gains `compression_threads` and is populated from `ClientConfig::compression_threads` in `apply_compression`. - Multithreaded zstd lives behind a `zstdmt` Cargo feature on the `compress` crate (off by default to avoid a forced C build cost). Requesting workers without the feature returns `Unsupported` so callers can fall back to single-threaded compression instead of silently discarding the user's request. upstream: options.c:89 do_compression_threads, token.c:701. Refs #2239, #2217. * style: apply rustfmt to zstd worker wiring * fix(compress): avoid Result::unwrap_err since encoder lacks Debug * fix(engine): wire compression_threads through options builder + Debug-safe unwrap * fix(engine): gate unused ActiveCompressor::new behind #[cfg(test)] * fix(transfer): avoid expect_err on CompressedWriter lacking Debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Codex Task