COMPRESS-381 working in memory only may improve performance
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/ed3c605f Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/ed3c605f Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/ed3c605f Branch: refs/heads/master Commit: ed3c605fcbd48bfc52c4cb18b1d023257265890d Parents: 6497dcf Author: Stefan Bodewig <bode...@apache.org> Authored: Sat Feb 4 14:51:28 2017 +0100 Committer: Stefan Bodewig <bode...@apache.org> Committed: Sat Feb 4 14:51:28 2017 +0100 ---------------------------------------------------------------------- src/site/xdoc/examples.xml | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-compress/blob/ed3c605f/src/site/xdoc/examples.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml index 79e8cf9..59fc851 100644 --- a/src/site/xdoc/examples.xml +++ b/src/site/xdoc/examples.xml @@ -51,6 +51,12 @@ users wrap their stream in <code>Buffered<em>(In|Out)</em>putStream</code>s before using the Commons Compress API.</p> + + <p>When (de)compressing smaller files you may even benefit + from reading the whole file to uncompress into memory before + decompressing it or compressing to a + <code>ByteArrayOutputStream</code> so all operations happen in + memory.</p> </subsection> <subsection name="Factories">