You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2010/01/13 09:24:54 UTC

[jira] Updated: (JCR-2464) Reduce usage of String.intern()

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

Marcel Reutegger updated JCR-2464:
----------------------------------

    Status: Patch Available  (was: Open)

> Reduce usage of String.intern()
> -------------------------------
>
>                 Key: JCR-2464
>                 URL: https://issues.apache.org/jira/browse/JCR-2464
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-spi-commons
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2464.patch
>
>
> String.intern() is used for interning the namespace URI in NameImpl. For some trivial cases the intern() method shouldn't be called but a constant should be
> used. E.g. I'm thinking about the empty namespace URI, where calling String.intern() is way more expensive than checking if the length of the URI string is zero. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.