Commit 3f82078
authored
Use SkipBlockRangeIterator in TermOrdValComparator (#15696)
DocValuesRangeIterator will duplicate lots of work here, in the worst
case not doing any pruning at all but forcing all value comparisons
to be done twice on every document. Switch to using SkipBlockRangeIterator
instead, which only checks skip block boundaries and leaves all per-doc
checks to the LeafComparator itself.1 parent 448c7d8 commit 3f82078
File tree
3 files changed
+16
-34
lines changed- lucene
- core/src
- java/org/apache/lucene/search/comparators
- test/org/apache/lucene/search
3 files changed
+16
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
Lines changed: 6 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
496 | | - | |
| 495 | + | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
628 | | - | |
| 627 | + | |
629 | 628 | | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | 629 | | |
634 | | - | |
635 | | - | |
| 630 | + | |
636 | 631 | | |
637 | 632 | | |
638 | 633 | | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 634 | | |
654 | 635 | | |
655 | 636 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
| 637 | + | |
| 638 | + | |
663 | 639 | | |
664 | 640 | | |
665 | 641 | | |
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1020 | 1022 | | |
1021 | 1023 | | |
1022 | 1024 | | |
| |||
1043 | 1045 | | |
1044 | 1046 | | |
1045 | 1047 | | |
1046 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
1047 | 1051 | | |
1048 | 1052 | | |
1049 | 1053 | | |
1050 | 1054 | | |
1051 | 1055 | | |
1052 | 1056 | | |
1053 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1054 | 1060 | | |
1055 | 1061 | | |
1056 | 1062 | | |
| |||
0 commit comments