In allocation profiler result of an internal service, ACCP MD5 digest contributes over 6%, w/ further digging into ACCP implementation, we found the array copy in singlePass could be avoided and it will help with reducing heap pressure and slightly improve the performance of MD5 and other hash implementations from ACCP.
In allocation profiler result of an internal service, ACCP MD5 digest contributes over 6%, w/ further digging into ACCP implementation, we found the array copy in singlePass could be avoided and it will help with reducing heap pressure and slightly improve the performance of MD5 and other hash implementations from ACCP.
We have tested the fix with JMH:
JMH result: W/o fix:
W/ fix: