[
https://issues.apache.org/jira/browse/OAK-2627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14547795#comment-14547795
]
Julian Sedding commented on OAK-2627:
-------------------------------------
I was not aware of {{getContentIdentity()}}. AFAICS your patch should be
equally fine. I cannot judge whether {{getContentIdentity()}} or
{{getReference()}} is faster though.
Off Topic: Is {{getReference()}} part of the DataStore API and
{{getContentIdentity()}} is its equivalent on the JCR level Jackrabbit API?
Then the latter would just expose the same information to a higher level that
is accessible by applications.
> Optimize equals in AbstractBlob
> -------------------------------
>
> Key: OAK-2627
> URL: https://issues.apache.org/jira/browse/OAK-2627
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.1.7
> Reporter: Julian Sedding
> Assignee: Chetan Mehrotra
> Priority: Minor
> Attachments: OAK-2627-chetanm.patch, OAK-2627.patch
>
>
> During some work on the upgrade tool, I discovered tat AbstractBlob's
> {{equals}} method does not leverage reference comparison.
> While I have not investigated whether this really helps, I suspect it does.
> This issue is for the consideration of people with a deeper understanding of
> the system's dynamics.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)