Repository navigation
[ISSUE #65] Defer segment panel suppliers until the cache misses - #78
Merged
Merged
Conversation
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.
Closes #65
Use the existing panel entry on a cache hit before constructing its per-request initialization supplier. A missing or concurrently retired entry still goes through the per-key atomic loader and the same acquire/release rules. The new SDK concurrency regression verifies one reservation and 32 distinct IDs on a simultaneous cold start.
Compared with the exact #74 merge commit in two GC-profiled forks per workload (JDK 25, 1/8 threads). Single-thread normalized allocation changed from 12.0065 to 0.0062 B/ID; its two original fork means were 0.0065 and 24.0065. The high-allocation diagnostic fork recorded 1,701 captured-supplier samples. All three matched candidate diagnostics had zero cache-stack samples. At eight threads the unrelated queue-lock allocation remained (0.3253 → 0.3562 B/ID). Throughput was 32.51 → 33.62 M IDs/s at one thread and 19.56 → 19.65 M IDs/s at eight.
Checks: Maven wrapper JMH module and dependencies packaged with tests for both variants; cached-SDK cold-access and eviction regressions passed. The Markdown and JSON under docs/performance include per-fork iteration arrays, sampled types/stacks, host parameters and reproduction commands.