[
https://issues.apache.org/jira/browse/JAMES-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16375471#comment-16375471
]
ASF GitHub Bot commented on JAMES-2343:
---------------------------------------
GitHub user chikei opened a pull request:
https://github.com/apache/james-project/pull/105
JAMES-2343 Use buffered file output stream for MimeMessageInputStreamSource
Couldn't figure a way to reuse existing DeferredFileOutputStream, so I just
copy it and add buffer.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chikei/james-project JAMES-2343
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/james-project/pull/105.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #105
----
commit 82ab7555db87fa7aeb2e58089aa6204e6e98e116
Author: TzeKei Lee <chikei@...>
Date: 2018-02-24T10:24:05Z
JAMES-2343 Add buffered DeferredFileOutputStream and use it in
MimeMessageInputStreamSource
----
> Use buffered file output stream for MimeMessageInputStreamSource
> ----------------------------------------------------------------
>
> Key: JAMES-2343
> URL: https://issues.apache.org/jira/browse/JAMES-2343
> Project: James Server
> Issue Type: Improvement
> Components: James Core
> Reporter: TzeKai Lee
> Priority: Major
>
> Currently MimeMessageInputStreamSource use DeferredFileOutputStream from
> commons-io which does _not_ buffer output stream when switched to
> FileOutputStream. In my preliminary test, simply wrap FileOutputStream with
> BufferedOutputStream could make a 50% performance improvement for mail larger
> than deferring threshold (currently 100kb).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]