Stop using <foreach> to aggregate arrays — here's why it silently destroys performance in Mule 4

If you’re looping over a list, calling an API per item, and appending results to a variable, you’ve likely introduced an O(N²) memory…