jpountz commented on code in PR #15149:
URL: https://github.com/apache/lucene/pull/15149#discussion_r2324467138
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90NormsProducer.java:
##########
@@ -394,6 +394,14 @@ public long longValue() throws IOException {
public long longValue() throws IOException {
return slice.readByte(doc);
}
+
+ @Override
+ public void longValues(int size, int[] docs, long[] values, long
defaultValue)
+ throws IOException {
+ // Delegate to help performance: when the super call inlines,
calls to
+ // #advanceExact/#longValue become monomorphic.
Review Comment:
I am not sure if your first sentence is a suggestion to update the code
comment?
The JVM gives no guarantees about what may inline or not, but I confirmed
that this inlines when the `NumericDocValues#longValues` call site is
polymorphic in some hand-made benchmarks.
--
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]