Skip to content

Add advanced compression protocol negotiation and smart replay#31

Closed
404Setup wants to merge 7 commits into1.21.11from
jules-compression-features-10969774772304487702
Closed

Add advanced compression protocol negotiation and smart replay#31
404Setup wants to merge 7 commits into1.21.11from
jules-compression-features-10969774772304487702

Conversation

@404Setup
Copy link
Owner

@404Setup 404Setup commented Mar 2, 2026

Adds support for multiple advanced compression algorithms (lz4, zstd), protocol negotiation during server join, and a smart replay feature to group duplicate packets. All network encoders and decoders were updated to use a generic compression interface.


PR created automatically by Jules for task 10969774772304487702 started by @404Setup

This commit implements the major functional requests outlined:
1. Adds a common `KryptonCompressor` API that handles abstraction over algorithms.
2. Integrates dependencies for `lz4-java`, `zstd-jni`, and `brotli4j` and implements their wrappers.
3. Migrates the existing `VelocityCompressor` (deflate) to use this new interface.
4. Extends mod configuration to specify the preferred algorithm.
5. Implements protocol negotiation via Login Phase custom payload packets using Minecraft 1.21.11 `Identifier`s and `DiscardedQueryPayload`. Server falls back gracefully to `deflate`.
6. Implements an opt-in Smart Replay pipeline component (`SmartReplayEncoder`/`Decoder`) that intelligently groups identical packets with a custom header, and only enables this via Netty pipeline injection if both server and client agree to it during handshake negotiation.

Co-authored-by: 404Setup <153366651+404Setup@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@404Setup 404Setup closed this Mar 3, 2026
@404Setup 404Setup deleted the jules-compression-features-10969774772304487702 branch March 3, 2026 07:49
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.

1 participant