[
https://issues.apache.org/jira/browse/JCR-2814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933433#action_12933433
]
Michael Dürig commented on JCR-2814:
------------------------------------
I suggest to use a LRU map which starts out with a smaller size and grows up to
a maximum size to improve performance during initialization.
Performance with pre initialized LRU map (5000) items:
# LoginLogoutTest min 10% 50% 90% max
2.2 150 162 205 241 363
2.2-btree-usermanager-repository 426 434 555 631 767
2.2-default-usermanager-repository 427 440 560 642 735
Performance with LRU map preinitialized to 1024 items which grows up to 5000
items if necessary
# LoginLogoutTest min 10% 50% 90% max
2.2 151 162 200 222 405
2.2-btree-usermanager-repository 255 261 288 307 445
2.2-default-usermanager-repository 251 259 285 300 464
In both runs the first test uses SimpleAccessManager while the second and third
test use DefaultAccessManager. The first run exhibits a much larger drop in
login performance than the second run.
> Login performance drop when using DefaultAccessManager
> ------------------------------------------------------
>
> Key: JCR-2814
> URL: https://issues.apache.org/jira/browse/JCR-2814
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Affects Versions: 2.2.0
> Reporter: Michael Dürig
> Assignee: Michael Dürig
>
> JCR-2700 caused a drop in login performance when using DefaultAccessManager.
> The drop is caused by the initialization of the LRU map used in
> CompiledPermissionsImpl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.