Closed kalisp closed 2 months ago
Could we completely revamp the Ayon data tag content, shifting from hierarchical build-in tag metadata values to a JSON dump? This might significantly speed up the type conversion process. It would also align our workflow with other editorial DCC implementations.
I extracted content of Openpype tag to new key json_metadata
which contains json. This approach should be backward compatible, but it is a question if it should be cleaned up more in this PR or it should wait for transfer to Publisher (where all OP mentions should be purged, imho).
I extracted content of Openpype tag to new key
json_metadata
which contains json. This approach should be backward compatible, but it is a question if it should be cleaned up more in this PR or it should wait for transfer to Publisher (where all OP mentions should be purged, imho).
@MilaKudr @jakubjezek001 I'm gonna get started on the new publisher thing, should we go ahead and merge this one ? I don't mind managing more clean-up/tags discussions on my PRs moving forward.
Actually I dont think this would help slow down issue too much.
There is massive slowdown in these functions, caused by too verbose logging.
That could be solved by Publisher even without this update and it is questionable, if this should be merged altogether.
Actually I dont think this would help slow down issue too much. That could be solved by Publisher even without this update and it is questionable, if this should be merged altogether.
Yeah, perhaps we do not need to continue on this PR if - as you have said it will be faster in New publisher implementation. There is only openion on the json data implementation and its wider flexibility. But it could be implemented in the New publisher PR by @robin-ynput
Will be revisited after implementation of Publisher if necessary.
Changelog Description
Replaced usage of separate tags and type conversion with
ast
to storing everything in singletag.json_metadata
which provides typing out of the box.Additional info
Warnings or regexes caused unnecessary slowdown each saving or publishing with large amount of tracks in a workfile. Fixed additional issue with key value of
asset
.Unrelated issue, but causing some slowdown, is default DEBUG level in Pyblish plugins. It should be tied to
debug
command line argument, but it is not (imho).Testing notes: