I recently got a bug report about loading a project with a certain plugin freezing my application.
The issue is that the plugin is generating a 5Mb+ chunk, and Juce takes a seriously long time to load this project.
I'm using XML as my application project file type, the saved data is like this:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE CARLA-PROJECT> <CARLA-PROJECT VERSION='2.0'> <Plugin> <Data> <ChunkData> <!-- big chunk here --> </ChunkData> </Data> </Plugin> </CARLA-PROJECT>
With some debugging I see that Juce spends a lot of time doing String operations.
Is it possible to optimize this?
EDIT: The "freeze" happens during this line: