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
This does a bunch of string formatting on the happy path. According to my dhat analysis (opening rust-lang/rust with RA running in dhat and then waiting for a few minutes (it is very slow)), this accounts for 13% of the allocated blocks inside rust-analyzer. I don't think it uses much memory, but it's probably quite slow. I don't think my analysis is necessarily representative of normal usage, as it only really captured startup, but it still seems pretty relevant.
We can just remove those, they were added to aid in debugging #10084 which we now consider an undeterministic bug of salsa, so they don't really help anymore
rust-analyzer/crates/hir-def/src/nameres/path_resolution.rs
Lines 187 to 193 in bc97821
This does a bunch of string formatting on the happy path. According to my dhat analysis (opening rust-lang/rust with RA running in dhat and then waiting for a few minutes (it is very slow)), this accounts for 13% of the allocated blocks inside rust-analyzer. I don't think it uses much memory, but it's probably quite slow. I don't think my analysis is necessarily representative of normal usage, as it only really captured startup, but it still seems pretty relevant.
rust-analyzer version: current master bc97821
rustc version: 1.76.0-nightly, doesn't matter
relevant settings: the recommended settings for rust-lang/rust, provided there in
src/etc/rust_analyzer_settings.json
The text was updated successfully, but these errors were encountered: