I'm running an application where I process inbetween frames. The first time I execute a command like threshold, it takes a huge amount of time, whereas the next time - it's fast. I notice this when I first boot up the machine and run the program. Subsequent runs do OK until I turn the machine off and restart. I'm using 5.2. What is causing that and how can I overcome that?
For more complete information about compiler optimizations, see our Optimization Notice.