rust-lang / rust-lang/rust-analyzer
Expression lowering uses unreasonable amount of stack space
Open
@wowinter13 is already working on this.
Since Jan 13, 2025.
A-perf
C-enhancement
E-hard
fun
good first issue
S-actionable
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
Our lowering code for expressions is a single giant match, and looks like it consumes a lot of stack space, even in release mode.
See https://github.com/rust-analyzer/rust-analyzer/pull/5316/commits/12d52a726a1e6ca0f6b08343d13d0f6b50d94d8c for some ways to observe this.
It would be nice to optimize this!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.