jpountz commented on issue #12297: URL: https://github.com/apache/lucene/issues/12297#issuecomment-1589302884
I agree with Robert that 1kB per segment doesn't sound like a crazy amount of allocations, which suggests that you are searching many segments. Does the memory allocation profile look much better after your change? If yes, I wouldn't be against a small isolated change that avoids these allocations. It looks like one way to do it would be to update the `TermWeight` constructor to assign a dummy `simScorer` when scores are not needed. -- 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