mirror of https://github.com/apache/lucene.git
Fix lazy decoding of frequencies in `BlockImpactsDocsEnum`. (#12668)
The code was written as if frequencies should be lazily decoding, except that when refilling buffers freqs were getting eagerly decoded instead of lazily.
This commit is contained in:
parent
06341ffe1d
commit
afc990cd2b
|
@ -183,6 +183,9 @@ Optimizations
|
||||||
* GITHUB#12631: Write MSB VLong for better outputs sharing in block tree index, decreasing ~14% size
|
* GITHUB#12631: Write MSB VLong for better outputs sharing in block tree index, decreasing ~14% size
|
||||||
of .tip file. (Guo Feng)
|
of .tip file. (Guo Feng)
|
||||||
|
|
||||||
|
* GITHUB#12668: ImpactsEnums now decode frequencies lazily like PostingsEnums.
|
||||||
|
(Adrien Grand)
|
||||||
|
|
||||||
Changes in runtime behavior
|
Changes in runtime behavior
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
|
@ -1143,7 +1143,7 @@ public final class Lucene90PostingsReader extends PostingsReaderBase {
|
||||||
if (left >= BLOCK_SIZE) {
|
if (left >= BLOCK_SIZE) {
|
||||||
pforUtil.decodeAndPrefixSum(docIn, accum, docBuffer);
|
pforUtil.decodeAndPrefixSum(docIn, accum, docBuffer);
|
||||||
if (indexHasFreqs) {
|
if (indexHasFreqs) {
|
||||||
pforUtil.decode(docIn, freqBuffer);
|
isFreqsRead = false;
|
||||||
}
|
}
|
||||||
blockUpto += BLOCK_SIZE;
|
blockUpto += BLOCK_SIZE;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue