Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8191328

Avoid unnecessary overhead in CRC32C

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs

      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.

            dchuyko Dmitry Chuyko
            dchuyko Dmitry Chuyko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: