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 "angela (JIRA)" <ji...@apache.org> on 2016/10/27 16:18:58 UTC

[jira] [Comment Edited] (OAK-5025) Speed up ACE node name generation

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

angela edited comment on OAK-5025 at 10/27/16 4:18 PM:
-------------------------------------------------------

[~acollign], as discussed I will be happy to review and apply the patch you are working on. just ping me once you are done. thanks a lot for the report and the analysis.


was (Author: anchela):
[~acollign], as discussed I will be happy to review the patch you are working on. just ping me once you are done. thanks a lot for the report and the analysis.

> Speed up ACE node name generation
> ---------------------------------
>
>                 Key: OAK-5025
>                 URL: https://issues.apache.org/jira/browse/OAK-5025
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.12
>            Reporter: Alex COLLIGNON
>            Assignee: angela
>            Priority: Minor
>
> Currently, {{o.a.j.oak.security.authorization.accesscontrol.Util#generateAceName}} is traversing all the existing ACE of a certain node in order to generate continuous numbering (allow0, allow1, allow2).
> While that certainly helps to produce human readable names, it represents quite a performance bottleneck when the number of existing ACE starts to grow.
> Since the naming is a pure implementation detail, my proposal is to keep the continuous numbering for the first hundreds of nodes and then use a random number to generate unique names in a faster fashion.



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