Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-303

Base64OutputStream is two time slower than its Java8 counterpart

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.5
    • 0.8.6
    • core, dom
    • None

    Description

      While looking and running mime4J benchmarks, I tried some alternative implementations for Base64 encoding / decoding.

      Base64InputStream proved to be 20% faster than its Java8 counterpart.

      However, throughtput went from 280 MB/s to 520 MB/s by switching to Java8 Base64.getMimeEncoder().wrap(...)

      Tests pass and this speeds up message writing operations... Apache James can for instance beneficiate of it when composing JMAP messages with large attachments.

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: