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 "Davide Giannella (JIRA)" <ji...@apache.org> on 2016/06/10 10:35:22 UTC

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

     [ https://issues.apache.org/jira/browse/OAK-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Giannella closed OAK-4424.
---------------------------------

Bulk close for 1.5.3

> 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
>              Labels: performance
>             Fix For: 1.6, 1.5.3
>
>
> {{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)