Repository navigation
Avoid temporary pipeline snapshots during packet injection - #24
Merged
Merged
Conversation
[Medium impact] The PR appears safe to merge; no actionable issue was found. SummaryReplaces repeated pipeline-name snapshots with an optional read of Netty’s volatile predecessor link.
Reviews (1) · Last reviewed commit: "Avoid pipeline name snapshots for suppor..." · Reviewed by Greptile |
GrowlyX
force-pushed
the
perf/pipeline-context-links
branch
from
November 7, 2026 20:58
f18cfa2 to
81b96c8
Compare
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.
Serverbound packet injection repeatedly snapshots pipeline handler names to find the preceding context. The latest legacy-fluid allocation profile (
zslMZQSIBG) attributes about 2.24 MiB/s of array copying to this stack.Use an optional method handle to Netty's volatile predecessor link, rereading it on each call and validating target/predecessor membership. Preserve the public name-snapshot fallback for unavailable private access, unsupported contexts and failed validation. No contexts or pipeline topology are cached.
Validation: common tests pass with Netty 4.0.20, 4.1.118 and Blueprint's 4.2.9 runtime; all 122 default common/Bukkit tests and the universal jar build pass. Regression coverage includes randomized add/remove/replace operations, missing/null/case-sensitive names, first-handler/internal-tail boundaries, removal during lookup, wrapped contexts and forced fallback.
The warmed, alternating-order fixture reports zero temporary allocation on the guarded link path. In local JDK25/aarch64 Netty4.2.9 last-handler fixtures, names/link timings are 42.5/36.0 ns (8 handlers), 76.7/66.3 ns (16) and 180.2/155.6 ns (32). Reproduction and limitations are in
docs/performance/pipeline-predecessor-lookup.md. This is fixture evidence, not a measured production improvement; no live rollout included.