Skip to content

Commit

Permalink
Memoize SubtypeDecl.get_imp_deref
Browse files Browse the repository at this point in the history
This change allows to fix the performance regression introduced by
libadalang#1424.
  • Loading branch information
thvnx committed Aug 7, 2024
1 parent 241f89a commit b7e6106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ada/nodes.lkt
Original file line number Diff line number Diff line change
Expand Up @@ -6621,6 +6621,7 @@ class SubtypeDecl: BaseSubtypeDecl {
case t => t
}

@memoized
fun get_imp_deref(): Entity[Expr] =
self.get_type().get_imp_deref()

Expand Down

0 comments on commit b7e6106

Please sign in to comment.