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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 6
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: