perf(endpoints): Reduce allocation in endpoint resolution - #7304
Draft
alextwoods wants to merge 1 commit into
Draft
perf(endpoints): Reduce allocation in endpoint resolution#7304alextwoods wants to merge 1 commit into
alextwoods wants to merge 1 commit into
Conversation
alextwoods
force-pushed
the
alexwoo/endpoints-bdd-pr3
branch
from
August 21, 2026 19:47
6c232f4 to
0eb43e4
Compare
alextwoods
force-pushed
the
alexwoo/endpoints-bdd-pr3
branch
from
August 21, 2026 19:53
0eb43e4 to
4672665
Compare
alextwoods
force-pushed
the
alexwoo/endpoints-bdd-pr3
branch
2 times, most recently
from
August 21, 2026 20:32
79e3803 to
51d8552
Compare
alextwoods
force-pushed
the
alexwoo/endpoints-bdd-pr3
branch
from
August 21, 2026 21:36
51d8552 to
1269742
Compare
Apply the same direct-return pattern as the BDD codegen to the rules-based endpoint resolver code generation: - Rule methods return Endpoint directly (null = carry-on) instead of wrapping in RuleResult — eliminates new RuleResult(endpoint) on every successful resolution - Error results throw SdkClientException directly instead of allocating RuleResult.error() — no allocation on the error path - Null-checks replace RuleResult.isResolved() — simpler control flow - resolveEndpoint uses try/catch for error handling matching the BDD pattern - Region param extracted once at the top of resolveEndpoint to avoid repeated .id() calls Also refactors SymbolTable to use a single regionParamName (String) instead of a Set, matching the single-region-param reality of all current services, and adds coalesce type resolution to AssignTypesVisitor.
alextwoods
force-pushed
the
alexwoo/endpoints-bdd-pr3
branch
from
August 21, 2026 22:37
1269742 to
e745bc1
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.
Motivation and Context
Modifications
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License