vsop-479 commented on PR #13596: URL: https://github.com/apache/lucene/pull/13596#issuecomment-2320609552
I can't figure out what can we reuse from prior `PostingsEnum`. If we want reuse prior `PostingsEnum`'s docBuffer( if it still stay in first block), we should not reset `docBufferUpto` to `BLOCK_SIZE` (maybe set to 0?) when prior docStartFP equals current's, which will result in refillDocs. For the situation of PK, every PK has different `PostingsEnum`, prior `PostingsEnum` is mostly useless if reuse means reuse same `PostingsEnum` loaded docBuffer. @jpountz Please correct me if I am wrong. -- 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