Skip to main content

score_loop

Function score_loop 

Source
pub fn score_loop<S: Scorer>(
    scorer: &mut S,
    collector: &mut TopDocsCollector,
    seg_id: SegmentId,
) -> u64
Expand description

Monomorphic scoring loop. When called with a concrete Scorer type, LLVM inlines doc_id(), score(), next(), and set_min_competitive_score() — eliminating vtable dispatch overhead.

See [[optimization-scoring-throughput#Phase 1]].