I have a Flow with a string variable (not super long, maybe a few hundred words).
The flow iterates (Apply to each) through a list of substitutions (just a two column list of 'string_to_find' and 'string_to_replace_with').
On each iteration, a Compose action perfroms a Replace function, taking the string variable and substituting any instance of 'string_to_find' with 'string_to_replace'. A Set Variable action then stores the updated string from the Compose step back into the variable and the loop goes round again.
The substitution table has 12 entries (so the apply to each runs 12 times).
The 'Apply to each' loop routinely taking more than 5 seconds to complete. Given that this is a simple set of string substitutions, I'm surprised at how slow this is.
Unfortunately I now need to create another Flow using similar a technique but with more looping required and currently this one is taking over 20 seconds using just a small amount of test data.
Is there some way I can speed this up? How much 'processing power' does Flow give? In my experience, Flow is very quick at transferring data (pushing/pulling to/from various services/sources) but any 'internal' processing (such as this example of string substitution) seems very slow.