Skip to content

Cache container candidate name resolution#912

Merged
snazy merged 1 commit into
projectnessie:mainfrom
snazy:cont-cand-cache
Jul 17, 2026
Merged

Cache container candidate name resolution#912
snazy merged 1 commit into
projectnessie:mainfrom
snazy:cont-cand-cache

Conversation

@snazy

@snazy snazy commented Jul 17, 2026

Copy link
Copy Markdown
Member

Avoid rebuilding candidate-name strings for repeated namespace resolution on the same container. Cache computed candidates per container while returning a defensive array copy to preserve caller isolation.

Avoid rebuilding candidate-name strings for repeated namespace resolution on the same container. Cache computed candidates per container while returning a defensive array copy to preserve caller isolation.
@snazy
snazy requested a review from XN137 July 17, 2026 07:54

@XN137 XN137 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i assume all these optimizations are driven by local benchmarks you are running?

@snazy

snazy commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

i assume all these optimizations are driven by local benchmarks you are running?

yep - IIRC I still have one set of JMH benchmarks sitting on the "big commit stack"

@snazy
snazy merged commit 5313652 into projectnessie:main Jul 17, 2026
3 checks passed
@snazy
snazy deleted the cont-cand-cache branch July 17, 2026 09:39
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.

2 participants