Skip to content

GH-55750: [C++][Thirdparty] Upgrade zstd to v1.6.0 - #55777

Merged
mapleFU merged 1 commit into
apache:mainfrom
mapleFU:bump-zstd-to-160
Nov 27, 2026
Merged

mapleFU merged 1 commit into
apache:mainfrom
mapleFU:bump-zstd-to-160

Conversation

@mapleFU

@mapleFU mapleFU commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Upgrade bundled zstd from 1.5.7 to 1.6.0 (https://github.com/facebook/zstd/releases/tag/v1.6.0), which brings AArch64 decompression performance improvements, SVE2 compression optimizations, and stability/bug fixes.

Local benchmark results (arrow-compression-benchmark --benchmark_filter=ZSTD --benchmark_repetitions=5, Apple M4 Pro / arm64, Apple clang 17.0.0 (clang-1700.0.13.5), Release, median):

Benchmark zstd 1.5.7 zstd 1.6.0 Change
ReferenceDecompression<ZSTD> 1.777 Gi/s (4.40 ms) 1.974 Gi/s (3.96 ms) +11.1%
ReferenceStreamingDecompression<ZSTD> 1.546 Gi/s (5.05 ms) 1.666 Gi/s (4.69 ms) +7.7%
ReferenceStreamingCompression<ZSTD> 684.5 Mi/s (11.69 ms) 682.2 Mi/s (11.73 ms) -0.3%
ReferenceCompression<ZSTD> 735.5 Mi/s (10.88 ms) 724.9 Mi/s (11.04 ms) -1.4%

What changes are included in this PR?

Update ARROW_ZSTD_BUILD_VERSION and ARROW_ZSTD_BUILD_SHA256_CHECKSUM in cpp/thirdparty/versions.txt to 1.6.0.

Are these changes tested?

Yes. Verified locally with bundled zstd 1.6.0 (-DARROW_WITH_ZSTD=ON -Dzstd_SOURCE=BUNDLED):

  • arrow-utility-test --gtest_filter="*ZSTD*:*Zstd*:*Codec*"
  • arrow-io-compressed-test --gtest_filter="*ZSTD*:*Zstd*"
  • arrow-compression-benchmark --benchmark_filter=ZSTD

CI will verify across platforms.

Are there any user-facing changes?

No. Note that zstd v1.6.0 sets ZSTD_LEGACY_SUPPORT=0 by default (dropping decoding support for pre-v0.8.0 legacy frames), which does not affect standard Zstd frames used by Arrow/Parquet.

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Copilot AI balanced review requested due to automatic review settings November 25, 2026 07:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the bundled zstd version and checksum update.

No open issues 🎉

What changed in this PR

Updates Arrow’s bundled C++ zstd dependency to v1.6.0, targeting upstream AArch64 performance improvements and stability fixes.

Changes:

  • Bumps ARROW_ZSTD_BUILD_VERSION from 1.5.7 to 1.6.0.
  • Updates the corresponding SHA-256 checksum.
File Description
cpp/​thirdparty/​versions.txt Updates the bundled zstd version and archive checksum.

Review effort: Balanced

@mapleFU

mapleFU commented Nov 26, 2026

Copy link
Copy Markdown
Member Author

Another question: Should I change facebook/zstd to meta/zstd? ( The zstd repo has changed the organization, but we can still redirect to it)

@mapleFU
mapleFU merged commit 612de98 into apache:main Nov 27, 2026
63 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants