But I have also noticed that opening the export window in premiere when compiled in debug mode, premiere is not responding for 1-3 seconds, but then it gets its act together again.
I think it could be something with the C/c++ optimizations
That is correct, yes.