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

Emmanuel Lecharny updated DIRSERVER-1892:
-----------------------------------------
    Fix Version/s:     (was: 2.0.0-M16)
                   2.0.0

> 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
>            Priority: Major
>             Fix For: 2.0.0
>
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to