Feng Guo created LUCENE-9629: -------------------------------- Summary: Use computed mask values in ForUtil Key: LUCENE-9629 URL: https://issues.apache.org/jira/browse/LUCENE-9629 Project: Lucene - Core Issue Type: Improvement Components: core/codecs Reporter: Feng Guo
In the class ForkUtil, mask values have been computed and stored in static final vailables, but they are recomputed for every encoding, which may be unnecessary. anther small fix is that `remainingBitsPerValue > remainingBitsPerLong` to 'remainingBitsPerValue >= remainingBitsPerLong', otherwise ``` if (remainingBitsPerValue == 0) { idx++; remainingBitsPerValue = bitsPerValue; } ``` these code will never be used. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org