ndimiduk commented on PR #8757: URL: https://github.com/apache/hbase/pull/8757#issuecomment-7348835623
The JDK 21 tables show the regression isn't limited to ≥1KB: direct-buffer compares are 1.16–2.11x slower at 13 B and 1.71–2.00x at 64 B, which is the row/qualifier range CellComparatorImpl hits on off-heap cells. On JDK 25, ≤64 B is still 1.07–1.46x. JDK 25 isn't a supported runtime for 3.x yet, and JDK 17 hasn't been measured. Before deciding whether the Unsafe comparer needs to stay selectable on JDK < 25, could you add: 1. The same JMH on JDK 17 and a more recent 21u build. 2. Coverage for Bytes.compareTo(byte[]), mixed byte[]/ByteBuffer compare (the CellComparatorImpl path cited above), findCommonPrefix, the toLong/toInt getters, and SingleByteBuff.get(int). 3. One end-to-end run (our own PerformanceEvaluation or YCSB, read-heavy, off-heap BucketCache), master vs. this branch (or branch-3 vs. a backport) on JDK 17 or 21, with RS CPU and p99. If (3) shows a measurable cost, the getBest*() holders kept in ByteBufferUtils/Bytes look like a cheap place to select the Unsafe comparer/prefixer on JDK < 25. That would let this land ahead of JDK 25 support without regressing 17/21. Since the selection happens in static initializers, the override would need to be a system property rather than a Configuration key, and tests should force the VarHandle path through it, since precommit only runs JDK 17. Separately, the medium failure can't be confirmed from the expired artifacts; a rerun would settle it. (LLM assisted) -- 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]
