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

unnecessary masking of top byte when reading primitive values from byte stream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 6
    • 1.4.0
    • core-libs

      In the various java.io.Bits.get* utility methods, the top byte is
      unnecessarily bitwise and-ed with 0xFF before shifting. Removing the
      masking operation results in a slight (1-2%) performance gain for
      reads of primitive values.

            aozerov Andrey Ozerov
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: