Skip to content

Commit 4ce347f

Browse files
benflexcomputeflow360-auto-hotfix-bot
authored andcommitted
[Main to 25.5 hotfix] Speed up the loading of the entities by using set and also reduce complexity with supplied known hash set #1316 (#1319)
* Speed up the loading of the entities by using set and also reduce complexity with supplied known hash set (#1316) * Speed up the loading of the entities by using set and also reduce complecity with supplied known hash set * Remove description * Ready * Fix lint * Fix lint * Fix lint
1 parent 17d930b commit 4ce347f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

flow360/component/simulation/framework/entity_registry.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,14 @@ def fast_register(self, entity: EntityBase, known_frozen_hashes: set[str]) -> se
5656
Returns:
5757
known_frozen_hashes (set[str])
5858
"""
59+
<<<<<<< HEAD
5960
if entity.entity_bucket not in self.internal_registry:
61+
=======
62+
if (
63+
entity.entity_bucket
64+
not in self.internal_registry # pylint: disable=unsupported-membership-test
65+
):
66+
>>>>>>> bbce6895 ([Main to 25.5 hotfix] Speed up the loading of the entities by using set and also reduce complexity with supplied known hash set #1316 (#1319))
6067
# pylint: disable=unsupported-assignment-operation
6168
self.internal_registry[entity.entity_bucket] = []
6269

0 commit comments

Comments
 (0)