Performances Question - Code - Same project file -> multiple tracks items VS sub clipping?
Hello,
I am having trouble adding 1000 times the same project item (with different attributes each time) as track items.
At the same time, adding other hundreds of project items (all different this time), and at the same time doing prints in the console.
(Visual code got a bit unresponsive with telling me 3 times though pop up windows: "visual has.., do you wish to continue, cancel,..etc?")
I was wondering, what would be the best practices, to make visual code + Premiere Pro work well and be able to treat the same proj item 1000 times for example while doing other stuff and succeed?
(While I writing this test, the script is still "running"' while nothing happening. And I doubt anything will happen)
The code is fine, It was working with 5 items.
Would making 1000 subclips (which I don't know well yet, is it actually creating "new files"?), better than trying to treat the SAME PROJECT ITEM 1000 times?
Anyway, What Can I do to "help" and "augment" the performances in general? What are the best practices, and what I do in general to make my script complete its run, instead of stopping? at the moment it is supposed to insert items into the tracks..
I have a powerful GPU card by the way, Okay CPU. Right now while the code is running and NOTHING is happening and After saying "yes continue running" 3 times to visual code, the cpu is at 13% and GPU is at low use.
Was Premiere Pro Overwhelmed hence it does not know what to do?
(For the record, the logs show that my code reached the part where the projects items are inserted, and the logs shows that the script run through that "inserting part" many times. Finally when the logs end (supposedfly after 1000 insertion has been passed), .. my premiere pro projectr.. does not "get modified" (no item is added unfortuantely), again, the code worked just fine with 5 items.
Thanks,
Best
Edit:
I tried a "cancel" it showed a message "Canceled" but it is still struglling stoping the script now:

The script is still running (while nothing really happening).

Its as if Visual Code, .. broke.
Not sure what to do to prevent this, while keeping being able to treat the project item 1000 times and adding it 1000 times.
(edit2: added performances tag aswell)
