Firstly, thanks for the insanely fast response.
mmozeiko
Not sure which day are you looking at, but for latest source code as of now both exe and dll are built with exactly same O2/Od/Zi flags.
Just checked the latest on github. Yes, the -O setting is the same for both .exe and .dll, but there's also -LD specified on the .dll compilation specifically.
Regarding the other debug-related flags, it looks like we're using -Z7 rather than -Zi (although this doesn't seem significant), and also -Zo (which I don't even see listed in
https://docs.microsoft.com/en-gb/...ler-options-listed-alphabetically)
Anyway, thanks to your answer I know that even if there's debug info in the .exe and/or .dll, it's purely an issue of file size, not performance.