Repository navigation
[9.4.0] Index generated repository names by extension prefix (#32802) - #32904
Merged
meteorcloudy merged 1 commit intoNov 25, 2026
Merged
Conversation
`RepoDefinitionFunction` and `RepositoryMappingFunction` scan every module extension to find which one generated a repository. Both now look up the prefixes ending at each `+` in the canonical repository name using the inverse extension-name map. Checking earlier delimiters preserves the generating-extension diagnostic for a nonexistent repository whose name contains an extra `+`. In a lookup benchmark with 327 extensions and 42,379 repository names, the median time per sweep fell from 135.4 ms to 5.7 ms. Closes bazelbuild#32802 COPYBARA_INTEGRATE_REVIEW=bazelbuild#32802 from dzbarsky:dzbarsky/index-extension-repository-names ac76440 PiperOrigin-RevId: 1028310103 Change-Id: I0219cf62f3267edb42a1d7e3cc2a19a4a3d31d65
meteorcloudy
approved these changes
Nov 25, 2026
Merged
via the queue into
bazelbuild:release-9.4.0
with commit Nov 25, 2026
22a4ec9
43 checks passed
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.
RepoDefinitionFunctionandRepositoryMappingFunctionscan every module extension to find which one generated a repository. Both now look up the prefixes ending at each+in the canonical repository name using the inverse extension-name map. Checking earlier delimiters preserves the generating-extension diagnostic for a nonexistent repository whose name contains an extra+.In a lookup benchmark with 327 extensions and 42,379 repository names, the median time per sweep fell from 135.4 ms to 5.7 ms.
Closes #32802
COPYBARA_INTEGRATE_REVIEW=#32802 from dzbarsky:dzbarsky/index-extension-repository-names ac76440
PiperOrigin-RevId: 1028310103
Change-Id: I0219cf62f3267edb42a1d7e3cc2a19a4a3d31d65
Commit 2a2fea0