Perf improvements from optimization

11 February, 2009 § Leave a comment

Working on performance improvements and profiling for my part-of-speech tagger, I decided to switch from Debug mode to Release mode and see what my perf gain is like with Whole Program Optimization turned on. The difference was amazing. What used to take ~140 seconds to train the corpus, now only takes ~12 seconds. Some of the improvements made include removing variables and functions that are never used, not passing the “this” pointer implicitly if “this” is never referenced, and more.

Continue reading to see how you turn it on:


2-11-2009-6-48-32-pm
Select properties from the context menu of the project in Solution Explorer. Then choose Optimization from within the C/C++ submenu:

2-11-2009-6-50-00-pmStart using it and let me know what perf improvements you see.

Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Perf improvements from optimization at JAWS.

meta