Welcome Guest

Pages: 1
Action flow control, parallel execution
dylanPostMarch 4, 2022, 11:36
Newbie
Posts: 6
Registered:
November 30, 2020, 18:32
Normal topicAction flow control, parallel execution

I'm wondering if it's possible to make an action run on multiple files simultaneously. The action I'm working on is attached in the screenshot.

Currently the action applies to each selected track individually, and takes several seconds per track, so it is not super fast. Is it possible to tell Yate to process 10 tracks at a time, for example?
Image

2MR2PostMarch 4, 2022, 11:53
Avatar photo
Administrator
Posts: 2085
Registered:
August 23, 2012, 19:27
Normal topicAction flow control, parallel execution

The action is being applied on all files as it is running stepwise. That is, unless you're calling the action from another and running it grouped. For ten files, you're executing 6 statements. If you were running grouped, you'd be running 60 statements.

The gating factor is the Add to Apple App statement which displays each file it is working on in the status bar because the iTunes/Music method of adding tracks is terribly slow. As a test you can disable the Add statement and you'll see everything happens almost all at once. (depending on the Save being local, external, network, etc.).

The Yate interpreter emulates parallelism by having a statement performed on all selected files before going on to the next. However, once in the real code it is not launching threads to perform the operation. For instance on a Save, each file must still be individually saved.

Most of this is fine except when interacting with Apple Apps for some functions. Even launching multiple threads would not help as iTunes/Music processes them, one at a time.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.015 seconds.