Relates :
|
Pure Java implementation of java.util.CRC32C does branching by ByteOrder.nativeOrder() inside main loop. In some circumstances it may cost ~30% of time. E.g. I used to see it on x86 and aarch64 with -XX:DisableIntrinsic=_updateBytesCRC32C -Xcomp Those branches can be moved out of loops without bloating class code. This may help the case then Hotspot intrinsic is disabled, missing for the platform or then it is some other VM.
|