jprice8 opened a new pull request, #17031:
URL: https://github.com/apache/lucene/pull/17031

   ### Description
   
   Reuse the delegate's saved term state in BloomFilteringPostingsFormat to 
avoid repeating dictionary lookups when restoring a term.
   
   
   
   > **AI-assisted evidence summary — November 16, 2026**
   >
   > `BloomFilteredTermsEnum` now delegates `termState()` and `seekExact(term, 
state)`, avoiding repeated dictionary lookups during restoration. The patch 
adds 11 production lines and 82 test lines. Ordinary Bloom filtering, the index 
format, and public APIs stay unchanged.
   >
   > Intel Xeon Platinum 8175M, Temurin 25.0.5+8, JMH 1.37: five paired JVM 
forks, counterbalanced order, one thread, CPU affinity 0–3, 1 GiB heap, 3 × 
1-second warmup and 5 × 1-second measurement. Warm exact-UUID searches used 
131,072 IDs, 4,096 probes per case, identical indexes, and a disabled query 
cache. Values below are medians of fork means (minimum–maximum), in µs/search:
   >
   > | Queries / segments | Baseline | Patched |
   > |---|---:|---:|
   > | Hits / 1 | 6.185 (5.919–6.520) | 4.232 (4.184–4.343) |
   > | Hits / 8 | 7.021 (6.795–7.206) | 5.449 (5.386–5.831) |
   > | Misses / 1 | 0.420 (0.418–0.453) | 0.428 (0.421–0.446) |
   > | Misses / 8 | 1.581 (1.563–1.601) | 1.593 (1.555–1.879) |
   >
   > Matching-search time decreased 31.6% / 22.4%, and allocation decreased 
19.9% / 18.2%, for one / eight segments. Retained Lucene104 term states have an 
estimated shallow size of 80 bytes instead of 16: an additional 64 bytes per 
matching term/segment on this JVM.
   >
   > All trials were retained. Variable miss timings prompted three further 
pairs with longer warmup; ranges overlapped, so no miss-speed claim is made. 
These measurements do not establish improvements for cold I/O, mixed queries, 
indexing throughput, or other hardware/codecs.
   >
   > The regression failed on the redundant lookup before the fix and passed 
five repetitions afterward, checking postings and fresh-iterator restoration. 
Benchmark hit counts, document IDs, and exact score bits matched in all four 
cases. Full local validation passed on `01deb8e63e`: 19,356 tests reported, 
including 787 skipped. Timings remain the November 13 measurements on 
`781025d6fe`; this summary makes no upstream CI claim.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to