jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Marth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-567) DiffBuilder performance problem
Date Thu, 14 Nov 2013 16:49:29 GMT

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

Michael Marth updated OAK-567:
------------------------------

    Fix Version/s:     (was: 0.13)
                   0.11

> 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: Stefan Guggisberg
>             Fix For: 0.11
>
>         Attachments: OAK-567.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message