jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-2710) Utils.unshareString should not generate String instances unless needed
Date Tue, 31 Mar 2015 12:45:52 GMT

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

Robert Munteanu updated OAK-2710:
---------------------------------
    Attachment: OAK-2710.patch

> Utils.unshareString should not generate String instances unless needed
> ----------------------------------------------------------------------
>
>                 Key: OAK-2710
>                 URL: https://issues.apache.org/jira/browse/OAK-2710
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mongomk
>    Affects Versions: 1.1.7
>            Reporter: Robert Munteanu
>            Priority: Minor
>         Attachments: OAK-2710.patch
>
>
> org.apache.jackrabbit.oak.plugins.document.util.Utils.unshareString creates new String
instances unconditionally. Howewer, we can avoid this String creation if the JRE version is
recent enough.



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

Mime
View raw message