Repository navigation
Conversation
jungm
added this pull request to stack #278
October 5, 2026 11:20
…keys - Precompute the leaf container element descriptors of an element as a flat array instead of unwrapping composed descriptors with a lambda for every validated value. - Cache the runtime container key per container class on container element descriptors instead of resolving type arguments reflectively for every cascaded container. - Collect extracted values without a Lazy holder.
Compare paths in place to find the context whose path is the element's minus its container element node, without materializing the element's path when it is its parent's plus one node.
Cascade a single-group strategy without group conversions directly instead of through GroupStrategy#applyTo, and into container elements without allocating a capturing consumer per cascaded value.
- Cache executable descriptors per executable instead of hashing a new Signature for every call, and resolve them once per validation. - Reuse the executable's base path and the bean's Default group redefinition, and create parameter frames without streams. - Cache default parameter names per executable. - Map wrapper types to primitives with a lookup rather than a scan.
jungm
force-pushed
the
perf-5-cascading-executables
branch
from
October 5, 2026 11:42
944a989 to
d0bfa4c
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.
Summary
Removes the remaining overhead in cascading, container elements and executable validation.
Evidence
Numbers are JMH throughput (
-p provider=bval -f 2 -wi 2 -i 3, 1 s iterations,-prof gc, JDK 25), measured against the PR below this one. The machine was busy, so throughput carries wide error bars; the bytes allocated per operation (B/op) are deterministic.All benchmarks
A few rows (
wideBeanInvalid,elMessage) are lower in this run with unchanged allocation, which points to noise.Merge Danger
Door: two-way
Blast Radius: cascading
DefaultParameterNameProvidercaches names; custom providers are called as before.Executableper bean descriptor.