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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/06/03 04:25:59 UTC

[jira] [Created] (OAK-4424) Optimize PathUtils.concat by using a properly sized StringBuilder

Chetan Mehrotra created OAK-4424:
------------------------------------

             Summary: Optimize PathUtils.concat by using a properly sized StringBuilder
                 Key: OAK-4424
                 URL: https://issues.apache.org/jira/browse/OAK-4424
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: commons
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
            Priority: Minor
             Fix For: 1.6


{{PathUtils.concat}} does not specify the default size of StringBuilder. Default string constructor uses a string.length() + 16 as the buffer size. Given size of appended path is known we can properly size the string builder buffer to avoid any expansion during actual append



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