Skip to main content
Known Participant
October 28, 2025
Question

Automation Bocks - script slowdown

  • October 28, 2025
  • 3 replies
  • 124 views

Hey y'all

 

In my script all I do is create a list of all bin items, change their name with some string concatenation, create a list of all files on disk, compare the two lists, apply labels in PP based on file names... however iterating through these is very slow, takes 2-3 seconds per file.

 

This is on the fully maxed out M3 Ultra mac Studio, so the hardware is not the problem and every software is the latest version.

 

Is there a way to profile the script to see which node takes so long, or what would be your suggestion to solve this?

Any help is greatly appreciated.

3 replies

Mathias Moehl
Community Expert
Community Expert
October 28, 2025

The Premiere Pro ExtendScript API is not the fastest one, unfortuntely. Also, with Automation Blocks I had to balance ease of use and performance. Since project items are represented as path strings, there is a lot of conversion back and forth between these strings and the real objects, for example.
Also, ExtendScript is notoriously slow when concatenating very long strings. Here are two ways to create a text containing the names of all project items. The left variant creates a text by stepp by step appending names to an initially empty text. The longer that text becomes the slower the script will execute. The right one keeps the names in a list and only at the very end combines them to a large string. That works much faster.

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
Peru Bob
Community Expert
Community Expert
October 28, 2025
GEditAuthor
Known Participant
October 28, 2025

I started doing some performance benchmarks - please find photo attached.

You can see here how the iteration takes 0 milliseconds but the entire loop takes really long, that cannot be explained by the internal time taken in the loop.

Mathias could you please look into what is happening here?

Also I see huge slowdowns with string concatenation and lists, I'll do some benchmarks with that too.