slow-J opened a new pull request, #16248: URL: https://github.com/apache/lucene/pull/16248
Currently the `payloadLengthBuffer`, `payloadBytes`, `payload` are allocated when `indexHasPayloads`, but are only read when `needsPayloads`. Gating the allocation on `needsPayloads` would bring payloads to parity with the buffers in `needsOffsets` and `needsPos`, saving some memory if the field stores payloads but the query does not request them. `posDeltaBuffer[i] = code >>> 1` had to be moved up a few lines so it is always called when `indexHasPayloads` (this is already the current behaviour). Please let me know if I missed something. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
