rust-lang/rust-analyzer

Expression lowering uses unreasonable amount of stack space

Offen

#5.317 geöffnet am 11.07.2020

 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (1.726 Forks)batch import
A-perfC-enhancementE-hardS-actionablefungood first issue

Repository-Metriken

Stars
 (14.924 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 11T 5h) (96 gemergte PRs in 30 T)

Beschreibung

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