lucene/lucene/backward-codecs
Adrien Grand d1ef153d42 UCENE-9063: Speed up computation of impacts. (#1038)
The current design of CompetitiveImpactAccumulator treats norms in -128..127
as a special case that should be optimized. This commit goes a bit further by
treating it as the normal case, and only ever adding impacts to the TreeSet if
the norm is outside of the byte range. It avoids a number of operations on
TreeSets like adding impacts or removing redundant impacts.
2019-11-26 12:03:33 +01:00
..
2014-09-01 11:37:03 +00:00