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

Emmanuel Lécharny resolved DIRAPI-424.
--------------------------------------
    Fix Version/s: 2.1.8
       Resolution: Fixed

This was more complex than expected... Some missing field was added (syntax 
length was not hashed) and a wrong extension handling was leading to many 
issues: the X-SCHEMA extension was simply not taken into account.

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

Reply via email to