Skip to content

Commit

Permalink
Auto merge of #113609 - nnethercote:maybe_lint_level_root_bounded-cac…
Browse files Browse the repository at this point in the history
…he, r=cjgillot

Add a cache for `maybe_lint_level_root_bounded`

`maybe_lint_level_root_bounded` is called many times and traces node sub-paths many times. This PR adds a cache that lets many of these tracings be skipped, avoiding lots of calls to functions like `Map::attrs` and `Map::parent_id`.

r? `@cjgillot`
  • Loading branch information
bors committed Jul 14, 2023
2 parents cd2563c + d282f51 commit 51ed29a
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 51ed29a

Please sign in to comment.