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
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.