Hello,
I want my VC++ code to be executed as fast as possible. Does anybody know what I should change or set in project properties and settings?
Hello,
I want my VC++ code to be executed as fast as possible. Does anybody know what I should change or set in project properties and settings?
There is no silver bullet. Are you sure you are using data structures and algorithms that are best for your problem? If so, you may want to turn on the compiler optimizations on. Go to Configuration Properties > C/C++ > Optimization
and select Maximize Speed
/ Full Optimization
. However, I strongly suggest you play around with all the options in Release mode before settling on any one.
When you believe your structures and algorithms are good enough, it is very likely that they have a lot of room for improvement. To optimize that, in a Debug build, optimize in this way. Here's an example of this process.
Then switch to release mode, and it should generate the proper compiler optimizations.