Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-206

Use SharedByteArrayInputStream for memory usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6.0
    • None

    Description

      Issue

      Memory usage is wasted because MimeMessageUtils writes ByteArrayInputStream instead of SharedByteArrayInputStream.

       

      SharedInputStream

      `Java Mail API` provides a mechanism to save memory usage.

      If you use SharedByteInputStream, you can use it as a Call by Reference without assigning a new byte[] of the factor.

       

      Please refer to the following for detailed memory usage comparison.

       

      Thanks

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ti6419 Jaeheon-Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: