You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2024/02/13 13:00:00 UTC
[jira] [Resolved] (OAK-10639) NodeImpl: calculate mixinTypes lazy
[ https://issues.apache.org/jira/browse/OAK-10639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joerg Hoh resolved OAK-10639.
-----------------------------
Fix Version/s: 1.62.0
Resolution: Fixed
> NodeImpl: calculate mixinTypes lazy
> -----------------------------------
>
> Key: OAK-10639
> URL: https://issues.apache.org/jira/browse/OAK-10639
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: jcr
> Reporter: Joerg Hoh
> Assignee: Joerg Hoh
> Priority: Major
> Fix For: 1.62.0
>
>
> NodeImpl.isNodeType() calls ReadOnlyTypeManager.isNodeType(), but calculates all mixinTypes directly, even if the mixinTypes are not required in ReadOnlyTypeManager.isNodeType().
> The calculation of the mixinTypes could be converted into a Supplier<> type; and the resolution could be done only when the mixinTypes are actually required. This would save a few CPU cycles for the common case, where the mixinTypes are not required.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)