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

Field.parse() should defer parsing until the parsed value is actually requested

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • 0.6
    • None
    • None

    Description

      Currently the MessageBuilder invokes Field.parse() for every header field of a message. Benchmark tests have shown that this has a significant impact on performance.

      For example, DateTimeField parses the Date header into a java.util.Date object regardless if this value is ever needed or not.

      Attachments

        1. DateTimeField.java
          3 kB
          Markus Wiederkehr

        Activity

          People

            wmax Markus Wiederkehr
            wmax Markus Wiederkehr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: