Conversation
Member
Author
|
cc @jkotas. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the zstd library source code to the repository, taken verbatim from the current latest release (1.5.7). The implementation is separated from the C# wrapper to facilitate review.
Key changes:
- Adds complete zstd compression library source files (version 1.5.7)
- Includes common utilities, compression, and decompression modules
- Adds build configuration and supporting files
Reviewed changes
Copilot reviewed 126 out of 198 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/native/external/zstd/lib/compress/huf_compress.c | Huffman encoder implementation for compression |
| src/native/external/zstd/lib/compress/hist.h | Histogram function declarations |
| src/native/external/zstd/lib/compress/hist.c | Histogram function implementations for symbol counting |
| src/native/external/zstd/lib/compress/fse_compress.c | Finite State Entropy encoder implementation |
| src/native/external/zstd/lib/compress/clevels.h | Pre-defined compression level parameters |
| src/native/external/zstd/lib/common/zstd_trace.h | Tracing infrastructure for performance monitoring |
| src/native/external/zstd/lib/common/zstd_internal.h | Internal definitions shared across compression/decompression |
| src/native/external/zstd/lib/common/zstd_deps.h | Common library dependencies abstraction layer |
| src/native/external/zstd/lib/common/zstd_common.c | Common utility functions implementation |
| src/native/external/zstd/lib/common/xxhash.c | xxHash algorithm implementation wrapper |
| src/native/external/zstd/lib/common/threading.h | Cross-platform threading abstraction |
| src/native/external/zstd/lib/common/threading.c | Threading implementation for Windows/POSIX |
| src/native/external/zstd/lib/common/portability_macros.h | Platform detection and feature support macros |
| src/native/external/zstd/lib/common/pool.h | Thread pool interface declarations |
| src/native/external/zstd/lib/common/pool.c | Thread pool implementation for multi-threading |
| src/native/external/zstd/lib/common/mem.h | Memory I/O operations and type definitions |
| src/native/external/zstd/lib/common/huf.h | Huffman codec public API declarations |
| src/native/external/zstd/lib/common/fse_decompress.c | Finite State Entropy decoder implementation |
| src/native/external/zstd/lib/common/fse.h | FSE codec public API and static linking definitions |
| src/native/external/zstd/lib/common/error_private.h | Internal error handling macros and utilities |
| src/native/external/zstd/lib/common/error_private.c | Error string definitions and retrieval |
| src/native/external/zstd/lib/common/entropy_common.c | Common entropy coding functions (FSE/HUF) |
| src/native/external/zstd/lib/common/debug.h | Debug logging and assertion macros |
| src/native/external/zstd/lib/common/debug.c | Debug level global variable definition |
| src/native/external/zstd/lib/common/cpu.h | CPU feature detection via cpuid |
| src/native/external/zstd/lib/common/allocations.h | Custom memory allocation primitives |
| src/native/external/zstd/lib/.gitignore | Git ignore rules for build artifacts |
| src/native/external/zstd/build/single_file_libs/zstddeclib-in.c | Single-file decompressor amalgamation template |
| src/native/external/zstd/build/single_file_libs/examples/shell.html | Emscripten shell template for web examples |
| src/native/external/zstd/build/cmake/tests/.gitignore | Git ignore rules for CMake test artifacts |
jkotas
approved these changes
Dec 19, 2025
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-io-compression |
This was referenced Jan 9, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Contributes to #59591.
This PR adds the zstd library source in the repo. The source is taken verbatim from the current latest release (1.5.7). The code is submitted separately from the C# wrapper implementation for two reasons: