0

I have a Cmake OpenCV project. If I execute the same project under Windows in the debug configuration is the performance very bad and I place zero breakpoints. In the release modus, I get the same performance as on Linux.

Why is the performance better on Linux than on Windows? Can I fix the performance issue on window?

I use the compiler GCC on Linux and on Windows the VS compiler. On both OSs, I use Clion as IDE.

John Fox
  • 3
  • 1
  • what do you call "performance"? BTW, on windows in debug, it fills all allocated buffers with 0xCC (AFAIR) may have huge consequences on you algorithm. – OznOg Apr 30 '20 at 11:43

1 Answers1

2

It is not uncommon to see 10..100+ slower performance between unoptimized and optimized code.

VC++ does more checks in Debug mode than GCC, which leads to easier debugging, but possibly slower code.

Some possible solutions:

rustyx
  • 80,671
  • 25
  • 200
  • 267