Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-567

DiffBuilder performance problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11
    • mk
    • None

    Description

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

      HashMap<NodeState, String>
      

      and at the same time

      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;
          }
      }
      

      Attachments

        1. OAK-567.patch
          8 kB
          Michael Dürig

        Issue Links

          Activity

            People

              stefan@jira Stefan Guggisberg
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: