Our per-field vector and doc-values readers use TreeMaps but don't rely on the iteration order, so these TreeMaps can be replaced with more CPU/RAM-efficient HashMaps.
The per-field postings reader stays on a TreeMap since it relies on the iteration order.
Our per-field vector and doc-values readers use
TreeMap
s but don't rely on the iteration order, so theseTreeMap
s can be replaced with more CPU/RAM-efficientHashMap
s.The per-field postings reader stays on a
TreeMap
since it relies on the iteration order.