Open fulmicoton opened 11 months ago
Materializing the document mapping and (more importantly) doing lookups is not necessary.
let mut merged_doc_id_map: Vec<Vec<Option<DocId>>> = self .readers .iter() .map(|reader| { let mut segment_local_map = vec![]; segment_local_map.resize(reader.max_doc() as usize, None); segment_local_map }) .collect(); ...
It might actually be negligible.
Materializing the document mapping and (more importantly) doing lookups is not necessary.