Creating arrays/vectors of components. Copy/Move semantics

I’m sure there’s some cases where the STL is far better, and I’ve never really tested it myself. All I know is that there have been attempts to replace juce::Array with std::vector but it was found to be significantly slower for some crucial tasks.

There’s a few comments about it in this thread from this comment onwards:

TLDR, juce::Path is one of the cases where replacing juce::Array with std::vector is much slower.

Having said that, there’s also this comment from Jules recommending the use of STL containers where possible, although that’s older than the previous thread so perhaps the performance difference wasn’t known at the time: