Shadi
Shadi

Reputation: 689

Visual C++.NET , speed optimizations

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?

Upvotes: 1

Views: 548

Answers (2)

Mike Dunlavey
Mike Dunlavey

Reputation: 40649

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.

Upvotes: 1

dirkgently
dirkgently

Reputation: 111120

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.

Upvotes: 4

Related Questions