directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRSERVER-1892) We don't need to clone the full entry when returning it from the backend
Date Thu, 22 Aug 2013 16:59:54 GMT
Emmanuel Lecharny created DIRSERVER-1892:
--------------------------------------------

             Summary: We don't need to clone the full entry when returning it from the backend
                 Key: DIRSERVER-1892
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1892
             Project: Directory ApacheDS
          Issue Type: Improvement
    Affects Versions: 2.0.0-M15
            Reporter: Emmanuel Lecharny
             Fix For: 2.0.0-M16


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

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

Mime
View raw message