Stream: t-compiler/rust-analyzer

Topic: New perf optimization workflow


matklad (Mar 30 2021 at 09:52, on Zulip):

PSA: I've pushed https://github.com/rust-analyzer/rust-analyzer/pull/8254 to optimize debugging perf issues. The idea is that you write a #[test] that reproduces the perf problem exactly, with Cargo.toml and such, and then you have a fast iteration when applying changes.

matklad (Mar 30 2021 at 09:53, on Zulip):

I am somewhat emberrassed that it took me years to add that -- so far, I've been debugging perf by running cargo xtask install && code ., which isn't very productive.

Kirill Bulatov (Mar 30 2021 at 10:12, on Zulip):

So, now instead of generating the pseudoproject for the completions benchmark, we can pick some nasty real crate?

matklad (Mar 30 2021 at 10:37, on Zulip):

I guess that's more for debugging specific issues rather than for benchmarkin

matklad (Mar 30 2021 at 10:37, on Zulip):

it's a replacement for analysis stats, which works for more fine-grained operations

Laurențiu (Mar 30 2021 at 11:29, on Zulip):

analysis-bench?

matklad (Mar 30 2021 at 11:37, on Zulip):

Kind-of -- I think no one actually used analysis-bench

Laurențiu (Mar 30 2021 at 11:57, on Zulip):

I actually used it a couple of times in https://github.com/rust-analyzer/rust-analyzer/issues/5397

Last update: Jul 24 2021 at 20:00UTC