about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-22 22:12:19 +0100
committerNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-03-22 22:22:16 +0100
commit966d5b0e348c9bd29eb1d9ddc2c2cf42555a25b7 (patch)
treef2574770b5b17899ac2e0eb4ba5995d82b78a82f /tests/rustdoc-js-std/parser-errors.js
parente64c5961dc7640b4d5529608e0f321d586c027a0 (diff)
downloadrust-966d5b0e348c9bd29eb1d9ddc2c2cf42555a25b7.tar.gz
rust-966d5b0e348c9bd29eb1d9ddc2c2cf42555a25b7.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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions