From b7e6106a950994b0ec8d619c70f9a0a2cc3ac330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Th=C3=A9venoux?= Date: Tue, 6 Aug 2024 15:54:15 +0200 Subject: [PATCH] Memoize SubtypeDecl.get_imp_deref This change allows to fix the performance regression introduced by libadalang#1424. --- ada/nodes.lkt | 1 + 1 file changed, 1 insertion(+) diff --git a/ada/nodes.lkt b/ada/nodes.lkt index d53107010..c4e4ba896 100644 --- a/ada/nodes.lkt +++ b/ada/nodes.lkt @@ -6621,6 +6621,7 @@ class SubtypeDecl: BaseSubtypeDecl { case t => t } + @memoized fun get_imp_deref(): Entity[Expr] = self.get_type().get_imp_deref()