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