You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2015/12/02 15:12:10 UTC

[jira] [Created] (OAK-3715) SegmentWriter reduce buffer size for reading binaries

Alex Parvulescu created OAK-3715:
------------------------------------

             Summary: SegmentWriter reduce buffer size for reading binaries
                 Key: OAK-3715
                 URL: https://issues.apache.org/jira/browse/OAK-3715
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: segmentmk
            Reporter: Alex Parvulescu
            Assignee: Alex Parvulescu
            Priority: Minor


The SegmentWriter uses an initial buffer size of 256k for reading input streams binaries that need to be persisted, then it checks if the input is smaller than 16k to verify if it can be inlined or not.
In the case the input binary is small and can be inlined (<16k), the initial buffer size is too wasteful and could be reduced to 16k, and _if needed_ increased to 256k after the threshold check is passed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)