Skip to content

feat: support zstd compression in PBJ GRPC#770

Merged
anthony-swirldslabs merged 1 commit intomainfrom
766-grpcZstdCompression
Apr 1, 2026
Merged

feat: support zstd compression in PBJ GRPC#770
anthony-swirldslabs merged 1 commit intomainfrom
766-grpcZstdCompression

Conversation

@anthony-swirldslabs
Copy link
Copy Markdown
Contributor

Description:
Previous benchmarks demonstrated that the default zstd compression works exceptionally well for Hiero block data (e.g. see #749 ). This PR productionalizes the ZstdGrpcTransformer by moving it from integration tests to a new pbj-grpc-common module and making both the GRPC client and server code register the transformer in their static{} sections. This allows us to have a dependency on the com.github.luben:zstd-jni only once, and additionally, we don't make the lightweight and generic pbj-runtime module depend on it. Only clients that use PBJ GRPC will get this new dependency and will support the zstd compression automatically, which can be enabled via the corresponding PbjGrpcClient/ServerConfig objects.

Related issue(s):

Fixes #766

Notes for reviewer:
A new unit test is added for the transformer.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

JUnit Test Report

   79 files  +1     79 suites  +1   4m 22s ⏱️ -5s
1 354 tests +2  1 350 ✅ +2   4 💤 ±0  0 ❌ ±0 
7 236 runs  +2  7 216 ✅ +2  20 💤 ±0  0 ❌ ±0 

Results for commit e63f118. ± Comparison against base commit 470ec7e.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

Integration Test Report

    419 files  ±0      419 suites  ±0   18m 39s ⏱️ +32s
114 982 tests ±0  114 982 ✅ ±0  0 💤 ±0  0 ❌ ±0 
115 224 runs  ±0  115 224 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit e63f118. ± Comparison against base commit 470ec7e.

@anthony-swirldslabs anthony-swirldslabs merged commit c38d91b into main Apr 1, 2026
16 checks passed
@anthony-swirldslabs anthony-swirldslabs deleted the 766-grpcZstdCompression branch April 1, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Productionalize zstd-jni

4 participants