Skip to content

Commit 12fdcf5

Browse files
committed
compiler: Use cached_property where useful
1 parent 53f0bd2 commit 12fdcf5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devito/ir/clusters/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,15 @@ def dspace(self):
690690
"""Return the DataSpace of this ClusterGroup."""
691691
return DataSpace.union(*[i.dspace.reset() for i in self])
692692

693-
@property
693+
@cached_property
694694
def is_dense(self):
695695
return all(i.is_dense for i in self)
696696

697-
@property
697+
@cached_property
698698
def is_wild(self):
699699
return all(i.is_wild for i in self)
700700

701-
@property
701+
@cached_property
702702
def is_halo_touch(self):
703703
return all(i.is_halo_touch for i in self)
704704

0 commit comments

Comments
 (0)