diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-03-22 22:12:19 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-04-13 10:29:05 +0200 |
| commit | d0ae7cf62d540027e6e6289c61ed2f8452bbd3ba (patch) | |
| tree | c5f8adca739ffd97ca5152a8b0500be4fa46c6f9 /compiler/rustc_parse/src/errors.rs | |
| parent | 831d7c99d80fde0ab34025883d350810e742deee (diff) | |
| download | rust-d0ae7cf62d540027e6e6289c61ed2f8452bbd3ba.tar.gz rust-d0ae7cf62d540027e6e6289c61ed2f8452bbd3ba.zip | |
Cache `has_sig_drop_attr` for `significant_drop_tightening`
The lint is very slow as it doesn't cache the deeply nested check for the attribute. If we cache it, we can reduce the time spent on checking `rustc_borrowck` from 28s to 9s, which is a nice improvement. In the profile, the time inside `has_sig_drop_attr` goes from 66% to 0.2%, which is a lot more reasonable. See the PR for nice graphs.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
