Avoid a function call for most status updates
Let progress reporting backends can choose an appropriate resolution
for progress updates in the set_denominator() function, and use an
inline function to avoid any work except when n is a multiple of
the appropriate increment. This significantly speeds up
RebuildAffixesStemsAndSignaturesFromWordSplits.
Before:
ReadCorpus:: Time elapsed: 2825ms
Find Suffixes: Time elapsed: 15889ms
After:
ReadCorpus:: Time elapsed: 2766ms
Find Suffixes: Time elapsed: 13441ms
(Timings are best of three runs, analyzing the 14-million-word
English-language example corpus.)
git-svn-id: svn+ssh://clownfish.uchicago.edu/Volumes/Behemoth/svn/linguistica/Trunk@2046 94adc35a-e818-0410-82ae-8e236d748f55