Skip to content

Avoid duplicate lock export conflict unions - #288

Closed
zaniebot wants to merge 1 commit into
mainfrom
zb/bughuntperf/275-lock-export-duplicate-union
Closed

zaniebot wants to merge 1 commit into
mainfrom
zb/bughuntperf/275-lock-export-duplicate-union

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

When conflict markers reach a dependency through multiple parents, lock export looks up each propagated conflict, unions its marker into a temporary value, discards that value, and immediately repeats the same union against the child map. The redundant lookup and BDD union run for every conflict on every fan-in edge.

Remove the unused union and keep the single map update, preserving the exact exported markers for conditional extras and overlapping platform paths.

Performance

A warm fan-in microbenchmark with 4,096 conflict keys, four incoming parents, and nontrivial platform-and-extra marker trees produces identical maps while reducing MarkerTree::or calls from 32,768 to 16,384 and eliminating 16,384 child-map lookups. This only removes duplicate propagation work; it does not change parent-map construction or cloning.

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/bughuntperf/275-lock-export-duplicate-union branch from b660b4c to 79df4b3 Compare July 27, 2026 19:46
@zaniebot zaniebot added priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. size:0 Mechanical: little semantic reasoning; correctness is apparent from inspection or compiler checks. performance risk:0 No meaningful change to product, state, release, or automation behavior. labels Sep 9, 2026

zsol commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closing as superseded by astral-sh#21485, which has been merged.

@zsol zsol closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance priority:3 Normal: useful features, documentation, usability, or routine efficiency improvements. risk:0 No meaningful change to product, state, release, or automation behavior. size:0 Mechanical: little semantic reasoning; correctness is apparent from inspection or compiler checks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants