Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-71

Base64.isArrayByteBase64() method is inefficient for large byte arrays

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4
    • None

    Description

      Base64.isArrayByteBase64() method is inefficient for large byte arrays because it uses a temporary copy of the data to eliminate whitespace.

      This is very wasteful for large arrays, and is completely unnecessary.

      The code should just add a check for whitespace as part of the main loop.

      Patch to follow

      Attachments

        1. Base64.patch
          2 kB
          Sebb

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: