[ 
https://issues.apache.org/jira/browse/OAK-4428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315772#comment-15315772
 ] 

Chetan Mehrotra commented on OAK-4428:
--------------------------------------

As can be seen in hot-methods-1.png
* It would better to cache the hashcode of RevisionVector
* Also the equals method would probably benefit from a reference equality check 
as the RevisionVector instance might be same

> Optmize RevisionVector methods
> ------------------------------
>
>                 Key: OAK-4428
>                 URL: https://issues.apache.org/jira/browse/OAK-4428
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: documentmk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>            Priority: Minor
>              Labels: performance
>             Fix For: 1.6
>
>         Attachments: hot-methods-1.png
>
>
> {{RevisionVector}} is used in very critical paths and we should look into 
> optimzing some of its critical method



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to