Skip to content

Commit

Permalink
Auto merge of #127421 - cjgillot:cache-iter, r=fmease
Browse files Browse the repository at this point in the history
Cache hir_owner_nodes in ParentHirIterator.

Lint level computation may traverse deep HIR trees using that iterator. This calls `hir_owner_nodes` many times for the same HIR owner, which is wasterful.

This PR caches the value to allow a more efficient iteration scheme.

r? ghost for perf
  • Loading branch information
bors committed Jul 8, 2024
2 parents c65122e + d3ea941 commit 131707b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 131707b

Please sign in to comment.