lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] theolivenbaum opened a new issue #370: Reduce allocations from current FieldCache implementation
Date Sat, 17 Oct 2020 13:00:09 GMT

theolivenbaum opened a new issue #370:

   Was doing today some more benchmark on our usage of Lucene, and noticed the current design
of FieldCache allocates an anonymous class due to the method passed [here](
   NumericDocValues valuesIn = reader.GetNumericDocValues(field);
   if (valuesIn != null)
       // Not cached here by FieldCacheImpl (cached instead
       // per-thread by SegmentReader):
       return new FieldCache.Int64s(get: (docID) => valuesIn.Get(docID));
   In our usage of Lucene, we end up hitting this quite often, as you can see on the trace:
   I'll investigate if there is any quick win here, and open a PR if so.

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.

For queries about this service, please contact Infrastructure at:

View raw message