File loader causes CPU usage to skyrocket?

I’m writing a plugin where I will be loading Neural Amp Modeler’s .nam model files as well as .wav impulse response files, and using these files to process the input sounds. During plugin testing, I found that for both model file loading and impulse response loading, the CPU usage just skyrockets right after I loaded the file. This is even the case when no audio processing has taken place. And when audio processing starts, the audio is unsurprisingly cutting out and popping.
To give an example of how I’m loading the files, see screenshot of my impulse response loader code.

I suspect the bug is not in the file chooser but related to what you’re doing with the file after loading it. Have you tried running a profiler to see what the bottleneck is?

Thanks resolved.

Care to share the solution, so others can profit?

build the release in XCode. Before that I built the release using cmake --build . --config Release but somehow that didn’t solve the problem