Skip to content

Conversation

@jpountz
Copy link
Contributor

@jpountz jpountz commented Oct 13, 2023

This changes the following:

  • fewer docs indexed in non-nightly runs,
  • QueryUtils#checkFirstSkipTo uses the ScorerSupplier API to convey it will only check one doc,
  • QueryUtils#checkFirstSkipTo no longer relies on timing to run in a reasonably amount of time.

This changes the following:
 - fewer docs indexed in non-nightly runs,
 - `QueryUtils#checkFirstSkipTo` uses the `ScorerSupplier` API to convey it
   will only check one doc,
 - `QueryUtils#checkFirstSkipTo` no longer rely on timing to run in a
   reasonably amount of time.
@jpountz
Copy link
Contributor Author

jpountz commented Oct 13, 2023

On my machine the test goes from ~30s to ~5s. This is probably still too much, but at least these changes should not meaningfully decrease coverage.

@rmuir
Copy link
Member

rmuir commented Oct 13, 2023

Thanks for improving the speed of this test, last time i ran tests it took over 200seconds on my computer, i just did not look into it.

@jpountz jpountz merged commit f055ac6 into apache:main Oct 17, 2023
@jpountz jpountz deleted the speedup_TestIndexOrDocValuesQuery branch October 17, 2023 12:13
jpountz added a commit that referenced this pull request Oct 17, 2023
This changes the following:
 - fewer docs indexed in non-nightly runs,
 - `QueryUtils#checkFirstSkipTo` uses the `ScorerSupplier` API to convey it
   will only check one doc,
 - `QueryUtils#checkFirstSkipTo` no longer relies on timing to run in a
   reasonably amount of time.
clayburn added a commit to runningcode/lucene that referenced this pull request Oct 20, 2023
…ache.org

* upstream/main: (239 commits)
  Bound the RAM used by the NodeHash (sharing common suffixes) during FST compilation (apache#12633)
  Fix index out of bounds when writing FST to different metaOut (apache#12697) (apache#12698)
  Avoid object construction when linear searching arcs (apache#12692)
  chore: update the Javadoc example in Analyzer (apache#12693)
  coorect position on entry in CHANGES.txt
  Refactor ByteBlockPool so it is just a "shift/mask big array" (apache#12625)
  Extract the hnsw graph merging from being part of the vector writer (apache#12657)
  Specialize `BlockImpactsDocsEnum#nextDoc()`. (apache#12670)
  Speed up TestIndexOrDocValuesQuery. (apache#12672)
  Remove over-counting of deleted terms (apache#12586)
  Use MergeSorter in StableStringSorter (apache#12652)
  Use radix sort to speed up the sorting of terms in TermInSetQuery (apache#12587)
  Add timeouts to github jobs. Estimates taken from empirical run times (actions history), with a generous buffer added. (apache#12687)
  Optimize OnHeapHnswGraph's data structure (apache#12651)
  Add createClassLoader to replicator permissions (block specific to jacoco). (apache#12684)
  Move changes entry before backporting
  CHANGES
  Move testing properties to provider class (no classloading deadlock possible) and fallback to default provider in non-test mode
  simple cleanups to vector code (apache#12680)
  Better detect vector module in non-default setups (e.g., custom module layers) (apache#12677)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants