rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
11.46k stars 1.54k forks source link

very high memory consumption when checking web-sys #3895

Open matthiaskrgr opened 5 years ago

matthiaskrgr commented 5 years ago
git clone https://github.com/rustwasm/wasm-bindgen
cd crates/web-sys
RUST_BACKTRACE=full cargo clippy --all-targets --all-features -vvvv -- --cap-lints warn

This consumes an unreasonable high amount of memory, in some cases triggering the OOM killer on my system (if more lints/checks are enabled).

is there something that can be improved here? clippy 0.0.212 (016d92d 2019-03-10)

mati865 commented 5 years ago

I'm curious if recording trace with heaptrack could show which lint is so hungry. You would need to run Clippy directly, otherwise the tool will measure memory usage of rustup proxy.

EDIT: It will slow down Clippy a lot.