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
Commands like C:\Users\zakmi\.cargo\bin\rustc.exe --print sysroot take around 2 seconds, where as running them directly through the terminal take ~70ms:
rust-analyzer version: rust-analyzer 0.0.0 (c679648 2024-12-24)
rustc version:
rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: x86_64-pc-windows-msvc
release: 1.83.0
LLVM version: 19.1.1
editor or extension: N/A
relevant settings: Windows 10 Version 22H2 (OS Build 19045.5247)
repository link (if public, optional): (eg. rust-analyzer)
code snippet to reproduce:
rust-analyzer analysis-stats .
I noticed that rust-analyzer was extremely slow to start for a brand new project (
cargo new empty_project
) due to the Database loaded metadata step:Database loaded: 9.57s, 14mb (metadata 9.29s, 380kb; build 64.65ms, 0b)
After some analysis I added some extra logging to this function:
Running
analysis-stats
with this extra logging enabled:Commands like
C:\Users\zakmi\.cargo\bin\rustc.exe --print sysroot
take around 2 seconds, where as running them directly through the terminal take ~70ms:This causes rust-analyzer performance to be very poor, especially on startup.
The text was updated successfully, but these errors were encountered: