[
https://issues.apache.org/jira/browse/DIRAPI-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lécharny closed DIRAPI-424.
------------------------------------
> The AttributeType hashCode method can use a pre-computed value
> --------------------------------------------------------------
>
> Key: DIRAPI-424
> URL: https://issues.apache.org/jira/browse/DIRAPI-424
> Project: Directory Client API
> Issue Type: Improvement
> Reporter: Emmanuel Lécharny
> Priority: Minor
> Fix For: 2.1.8
>
>
> When we call the {{hashCode()}} method, it computes the hashcode, which is
> expected. Except that an {{AttributeType}} instance is pretty much immutable.
> So we could spare some CPU by using a static value that will hold the hash
> code, and rehash if needed in the setters
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]