Skip to content

Avoid quadratic deduping in location expansion#3636

Merged
illicitonion merged 1 commit intobazelbuild:mainfrom
hermeticbuild:zbarsky/dedup-locations
Sep 29, 2025
Merged

Avoid quadratic deduping in location expansion#3636
illicitonion merged 1 commit intobazelbuild:mainfrom
hermeticbuild:zbarsky/dedup-locations

Conversation

@dzbarsky
Copy link
Copy Markdown
Contributor

Does what it says on the tin. Usually the deduping was not necessary at all because the argument were already coming from a depset or an attribute (though kept for safety), but doing the same work for every arg was truly unnecessary

Before:
image

After:
image

@dzbarsky dzbarsky force-pushed the zbarsky/dedup-locations branch from 35cbeba to 14324cd Compare September 28, 2025 02:17
Copy link
Copy Markdown
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@illicitonion illicitonion added this pull request to the merge queue Sep 29, 2025
Merged via the queue into bazelbuild:main with commit e05a22c Sep 29, 2025
3 checks passed
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