Repository navigation
Conversation
LruTable.D1 and D2 are bounded least-recently-used tables over chained buckets whose entries carry their own recency links, so a lookup allocates nothing and a full table holds one object per key. The bucket array starts at 16 and doubles as the table fills, up to the size a fixed table would allocate for the bound, so a table that never fills never pays for it. At the bound, insert evicts the eldest entry and returns it. The exposure cache moves onto LruTable.D2, dropping its own recency list and lazy table: a cache that sees few subjects now holds a small bucket array instead of allocating the full 512 KiB one on its first exposure. LruTableBenchmark compares it with a LinkedHashMap in access order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LLM ValidationLLM Validation Gate — java-agent-instructions✅ PASS
6 case(s) · quality 81.0 → 82.3 (+1.3) · win-rate 53% [50%–56%] Details — analysis and per-case resultsAnalysisChanged instruction file(s): No safety or blocking-case regressions across 6 case(s). Overall pairwise win-rate 53% [50%–56%], quality +1.3 — see the verdict above for whether that clears the noise band. Results
Cases
Per-dimension scores, token usage, latency, and estimated cost are in the CI job logs. |
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
This branch has not been deployed
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.
What Does This Do
Stacked on #13533, the exposure cache.
Moves dd-openfeature's
ExposureDeduplicationCacheonto the toolboxLruTable: a bounded LRU whose entries carry their own links, so the cache holds one object per subject and allocates nothing per lookup.This is the FFE half of what used to be #13594.
LruTableitself now lands separately ininternal-api(#13594, on #13649), where the tracer can use it right away. This branch still carries the toolbox copy ofLruTable, because the FFE stack is toolbox-based. Once #13531 movesinternal-api'sLruTableinto the toolbox, this PR shrinks to theExposureDeduplicationCachechange.Motivation
See #13594 for
LruTable's design and benchmarks. For FFE, the exposure cache keeps one object per deduplicated subject instead of aLinkedHashMapnode plus key objects.Additional Notes
🤖 Generated with Claude Code