bugmakerrrrrr commented on code in PR #13961: URL: https://github.com/apache/lucene/pull/13961#discussion_r1820891044
########## lucene/core/src/java/org/apache/lucene/index/SlowCompositeCodecReaderWrapper.java: ########## @@ -377,7 +376,7 @@ private static class SlowCompositeDocValuesProducerWrapper extends DocValuesProd private final CodecReader[] codecReaders; private final DocValuesProducer[] producers; private final int[] docStarts; - private final Map<String, OrdinalMap> cachedOrdMaps = new HashMap<>(); + private final IntObjectHashMap<OrdinalMap> cachedOrdMaps = new IntObjectHashMap<>(); Review Comment: Reverted. Btw, I wonder if we should change the DocValuesProducer/NormsProducer API to take a String rather than a FieldInfo right now as mentioned in [issue#13805](https://github.com/apache/lucene/issues/13805#issuecomment-2360784108) and [issue#13685](https://github.com/apache/lucene/issues/13685). -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org