Skip to content

Commit

Permalink
ModuleItem: Do not search for variable definitions to improve Graph c…
Browse files Browse the repository at this point in the history
…reation performance
  • Loading branch information
reuterbal committed Nov 23, 2024
1 parent 556c753 commit dbea220
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions loki/batch/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,7 @@ def definitions(self):
global variables.
"""
self.concretize_definitions()
definitions = tuple(
d for d in self.ir.definitions
if not isinstance(d, (MetaSymbol, TypedSymbol)) or isinstance(d, ProcedureSymbol)
)
definitions = self.ir.subroutines + as_tuple(FindNodes((TypeDef, Interface)).visit(self.ir.spec))
return definitions

@property
Expand Down

0 comments on commit dbea220

Please sign in to comment.