ID 513044 - Creating tags via Python in Hiero 13.1v2, and later, is significantly slower than previous releases

Follow

Problem summary
Creating tags via Python in Hiero 13.1v2, and later, is significantly slower than previous releases.
 
Customer reported version
Hiero 13.2v2
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) To make this issue more noticeable, you will need a large project. An example .hrox project is attached.
 
2) Open Hiero 13.1v2, or later.
 
3) Open the attached project, and double click Sequence 2 to open it in the Timeline.
 
4) Run the following code in the Script Editor

def create_tags_example():     sequence = hiero.core.projects()[0].sequences()[0]     for track in sequence:         if track.items():             track_item = track.items()[0]             for i in range(288):                 tag = hiero.core.Tag("Take Name")                 track_item.addTag(tag) create_tags_example()
 
5) Repeat the above steps in Nuke 13.1v1 and notice that the tags are created much faster than in Hiero 13.1v2 and later.
 
Expected behaviour
Creating tags via Python should take about the same time as it did in previous releases.
 
Actual behaviour
Creating tags via Python in Hiero 13.1v2, and later, is significantly slower than in previous releases.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Hiero 13.2v2 - Windows 10 - Linux CentOS 7
Hiero 13.2v1 - Windows 10
Hiero 13.1v2 - Windows 10 - Linux CentOS 7 - Regression
 
Unable to reproduce bug in:
Hiero 13.1v1 - Windows 10 - Linux CentOS 7
 
Earliest version tested
Hiero 13.1v1
- This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why