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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2013/01/17 15:06:28 UTC

[jira] [Created] (OAK-567) DiffBuilder performance problem

Thomas Mueller created OAK-567:
----------------------------------

             Summary: DiffBuilder performance problem
                 Key: OAK-567
                 URL: https://issues.apache.org/jira/browse/OAK-567
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: mk
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller


The org.apache.jackrabbit.mk.model.tree.DiffBuilder is very slow because it uses:

{code}
HashMap<NodeState, String>
{code}

and at the same time

{code}
class AbstractNodeState implements NodeState {
        /**
     * Returns a hash code that's compatible with how the
     * {@link #equals(Object)} method is implemented. The current
     * implementation simply returns zero for everything since
     * {@link NodeState} instances are not intended for use as hash keys.
     *
     * @return hash code
     */
    @Override
    public int hashCode() {
        return 0;
    }
}
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira