Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3715

SegmentWriter reduce buffer size for reading binaries

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.12, 1.4
    • Component/s: segmentmk
    • Labels:
      None

      Description

      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. [0]
      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.

      [0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java#L495

        Attachments

        1. OAK-3715.patch
          1 kB
          Alex Deparvu

          Activity

            People

            • Assignee:
              stillalex Alex Deparvu
              Reporter:
              stillalex Alex Deparvu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: