mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #5667 from BigRoy/bugfix/publisher_reset_report_maker_memory_leak
Publisher: Fix report maker memory leak + optimize lookups using set
This commit is contained in:
commit
baf6945b4d
1 changed files with 3 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ class PublishReportMaker:
|
|||
self._plugin_data = []
|
||||
self._plugin_data_with_plugin = []
|
||||
|
||||
self._stored_plugins = []
|
||||
self._stored_plugins = set()
|
||||
self._current_plugin_data = []
|
||||
self._all_instances_by_id = {}
|
||||
self._current_context = None
|
||||
|
|
@ -194,6 +194,7 @@ class PublishReportMaker:
|
|||
self._publish_discover_result = create_context.publish_discover_result
|
||||
self._plugin_data = []
|
||||
self._plugin_data_with_plugin = []
|
||||
self._stored_plugins = set()
|
||||
self._current_plugin_data = {}
|
||||
self._all_instances_by_id = {}
|
||||
self._current_context = context
|
||||
|
|
@ -229,7 +230,7 @@ class PublishReportMaker:
|
|||
raise ValueError(
|
||||
"Plugin '{}' is already stored".format(str(plugin)))
|
||||
|
||||
self._stored_plugins.append(plugin)
|
||||
self._stored_plugins.add(plugin)
|
||||
|
||||
plugin_data_item = self._create_plugin_data_item(plugin)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue