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: