You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have about a hundred constructors of various structs named new (Foo::new) in my medium sized project (about 50 000 lines split into 10 crates in a workspace). When I hit Alt-F7 to find usages of some of thosenew, it often takes half a minute to perform the search on my Core i5, turning this very fundamental action into something almost unusable. Less common names resolve much faster.
The text was updated successfully, but these errors were encountered:
Yes, it's known issue. Seems like new name is so widespread in the Rust ecosystem that our algorithms stop working =D
I think we should make a search by struct/enum name in the case of associated items, but now this approach will work worse because of re-exports that we don't take into account during the search.
Also, we significantly improved the performance recently, it should also affect find usages. Will be in the next release (1 week ETA)
4757: PERF: optimize "find usages" of associated values r=vlad20012 a=vlad20012
Works for e.g. functions in inherent impls or trait impls. Greatly speeds up find usages of `Foo::new` functions. Fixes#4222
Co-authored-by: vlad20012 <beskvlad@gmail.com>
I have about a hundred constructors of various structs named
new
(Foo::new
) in my medium sized project (about 50 000 lines split into 10 crates in a workspace). When I hit Alt-F7 to find usages of some of thosenew
, it often takes half a minute to perform the search on my Core i5, turning this very fundamental action into something almost unusable. Less common names resolve much faster.The text was updated successfully, but these errors were encountered: