You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2008/03/04 22:33:40 UTC
[jira] Created: (WSCOMMONS-307) Attachments BufferUtils is slow
when writing to a file
Attachments BufferUtils is slow when writing to a file
------------------------------------------------------
Key: WSCOMMONS-307
URL: https://issues.apache.org/jira/browse/WSCOMMONS-307
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Reporter: Rich Scheuerle
Assignee: Rich Scheuerle
Problem:
BufferUtils.inputStream2OutputStream(InputStream is, OutputStream os) is slow when the OutputStream is a FileOutputStream and the size of the InputStream is large (i.e. > 100M).
Solution:
A) Increase the internal buffer from 4K to 100K
B) If the OutputStream is a FileOutputStream, then obtain a FileChannel and FileLock to write the contents of the InputStream to the OutputStream.
I am testing a solution now. This problem was found by Tim Hefele.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Work started: (WSCOMMONS-307) Attachments BufferUtils is
slow when writing to a file
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on WSCOMMONS-307 started by Rich Scheuerle.
> Attachments BufferUtils is slow when writing to a file
> ------------------------------------------------------
>
> Key: WSCOMMONS-307
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-307
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Priority: Blocker
>
> Problem:
> BufferUtils.inputStream2OutputStream(InputStream is, OutputStream os) is slow when the OutputStream is a FileOutputStream and the size of the InputStream is large (i.e. > 100M).
> Solution:
> A) Increase the internal buffer from 4K to 100K
> B) If the OutputStream is a FileOutputStream, then obtain a FileChannel and FileLock to write the contents of the InputStream to the OutputStream.
> I am testing a solution now. This problem was found by Tim Hefele.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Updated: (WSCOMMONS-307) Attachments BufferUtils is slow
when writing to a file
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle updated WSCOMMONS-307:
-------------------------------------
Priority: Blocker (was: Major)
This should be fixed for 1.2.6
> Attachments BufferUtils is slow when writing to a file
> ------------------------------------------------------
>
> Key: WSCOMMONS-307
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-307
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Priority: Blocker
>
> Problem:
> BufferUtils.inputStream2OutputStream(InputStream is, OutputStream os) is slow when the OutputStream is a FileOutputStream and the size of the InputStream is large (i.e. > 100M).
> Solution:
> A) Increase the internal buffer from 4K to 100K
> B) If the OutputStream is a FileOutputStream, then obtain a FileChannel and FileLock to write the contents of the InputStream to the OutputStream.
> I am testing a solution now. This problem was found by Tim Hefele.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-307) Attachments BufferUtils is slow
when writing to a file
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle resolved WSCOMMONS-307.
--------------------------------------
Resolution: Fixed
634354
> Attachments BufferUtils is slow when writing to a file
> ------------------------------------------------------
>
> Key: WSCOMMONS-307
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-307
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assignee: Rich Scheuerle
> Priority: Blocker
>
> Problem:
> BufferUtils.inputStream2OutputStream(InputStream is, OutputStream os) is slow when the OutputStream is a FileOutputStream and the size of the InputStream is large (i.e. > 100M).
> Solution:
> A) Increase the internal buffer from 4K to 100K
> B) If the OutputStream is a FileOutputStream, then obtain a FileChannel and FileLock to write the contents of the InputStream to the OutputStream.
> I am testing a solution now. This problem was found by Tim Hefele.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org