Emmanuel Lécharny created DIRAPI-424:
----------------------------------------

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


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: dev-unsubscr...@directory.apache.org
For additional commands, e-mail: dev-h...@directory.apache.org

Reply via email to