Skip to content

Commit 680b7d6

Browse files
committed
added cache back
1 parent 0b845c9 commit 680b7d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/semantic_digital_twin/world.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ def compute_child_kinematic_structure_entities(
15191519
self.kinematic_structure.successors(kinematic_structure_entity.index)
15201520
)
15211521

1522+
@lru_cache(maxsize=_LRU_CACHE_SIZE)
15221523
def compute_parent_connection(
15231524
self, kinematic_structure_entity: KinematicStructureEntity
15241525
) -> Optional[Connection]:
@@ -1538,6 +1539,7 @@ def compute_parent_connection(
15381539
)
15391540
)
15401541

1542+
@lru_cache(maxsize=_LRU_CACHE_SIZE)
15411543
def compute_parent_kinematic_structure_entity(
15421544
self, kinematic_structure_entity: KinematicStructureEntity
15431545
) -> Optional[KinematicStructureEntity]:

0 commit comments

Comments
 (0)