Skip to content

Add secondary stress benchmark for adding trait in owner's trait_map#2436

Open
aerooneqq wants to merge 1 commit intorust-lang:masterfrom
aerooneqq:add-trait-incr-patches
Open

Add secondary stress benchmark for adding trait in owner's trait_map#2436
aerooneqq wants to merge 1 commit intorust-lang:masterfrom
aerooneqq:add-trait-incr-patches

Conversation

@aerooneqq
Copy link
Copy Markdown

This PR adds a new secondary benchmark for case when a new trait is added to in_scope_traits_map query. During experiments with queries in #155678 (where I merged some queries into one, meaning invalidation of any part of the query will invalidate whole new merged query) improvements were reported, however I did not find any benchmark that covered case when a new trait is added to in_scope_traits_map query, so I can not fully trust those results.

A real-life scenario where such regression is possible is importing (or creating) a new trait with functions whose names are mentioned frequently in a file in a deferred typecheck context.

cc @petrochenkov

@aerooneqq aerooneqq force-pushed the add-trait-incr-patches branch from 5c25208 to 569c00d Compare April 28, 2026 12:48
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.

1 participant