rust-lang/rust-analyzer

Expression lowering uses unreasonable amount of stack space

Open

#5317 aperta il 11 lug 2020

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)Rust (1726 fork)batch import
A-perfC-enhancementE-hardS-actionablefungood first issue

Metriche repository

Star
 (14.924 star)
Metriche merge PR
 (Merge medio 3g 11h) (113 PR mergiate in 30 g)

Descrizione

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!

Guida contributor