James Mime4j
  1. James Mime4j
  2. MIME4J-96

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:
      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.

      1. DateTimeField.java
        3 kB
        Markus Wiederkehr

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Markus Wiederkehr
            Reporter:
            Markus Wiederkehr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development