ajkh88 commented on code in PR #7481:
URL: https://github.com/apache/hbase/pull/7481#discussion_r2585444216


##########
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapper.java:
##########
@@ -166,4 +166,13 @@ public interface MetricsRegionWrapper {
   /** Returns the number of row reads on memstore and file per store */
   Map<String, Long> getMixedRowReadsCount();
 
+  /**
+   * Returns a SHA-256 hash of the table descriptor that this region was 
opened with. This hash

Review Comment:
   Modern x86 (SHA-NI), ARM (Crypto Extensions), and RISC-V CPUs have hardware 
SHA instruction sets that significantly accelerate SHA-256 operations. The JVM 
can leverage these via native libraries if available, making this much faster 
than software implementations. That said, if you think CRC32 would still be 
meaningfully faster here, I'm happy to make that change! 
   Reference: https://en.wikipedia.org/wiki/SHA_instruction_set



-- 
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]

Reply via email to