Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1892

We don't need to clone the full entry when returning it from the backend

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M15
    • Fix Version/s: 2.0.0.AM26
    • Component/s: None
    • Labels:
      None

      Description

      I modified the Entry.clone() method so that we don't deep clone the entry, but only the Map containing the Attributes. The unit tests are all passing, and the performance boost is clear.

      We never need to clone everything, we never modify anything in an Attribute. (And if so, it's up to the code doing that to be sure it does not modify the entry).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              elecharny Emmanuel L├ęcharny
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: