Hi Community,
I am working on an app, which analyzes an image for multiple features. While testing the executable I found that there is a massive performance difference between running the code in the IDE and the executable.
I made an example, which shows this problem clearly. Basically I extract small areas out of a much larger image. The example extracts the same 50*50 px area. After that, some local thresholding is being applied onto those extracts.
10.000 extracts, 8 parallel loops, 1 core for Vision:
IDE: 0,6 s for the extracts, 0,4 s for the thresholding
EXE: 4,5 s for the extracts, 11 s for the thresholding
Why does it take so much longer in the EXE? My actual algorithms are much more complex, which amplify the problem massively. Playing with the parameters influences the numbers slightly, but the big difference in time between IDE and EXE remains. I tried the code on multiple machines, same problem. Example saved as 2012.
System Info: Win 10 64, LabVIEW 2020 64, Vision 2020 64 (I have tried the code in 32 bit and observed the same problem)
I hope you can help me out. Thanks in advance!
performance_testing_lv_2012.zip