This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Acl::SetRule performance is very slow #4
Open
Description
We are dealing with rules in the 70k - 100k 1k - 2k range. It currently takes setRule around 2.5 seconds to process all of these rules.
I have been able to increase the performance of this method by roughly 40% by simply eliminating the use of array_merge.
Suggested Change Acl line:580 to:
foreach($children as $child) {
$resources[] = $child;
}
Suggestions on how this method can be improved further would be great appreciated. The tree that is being generated takes approximately 100-130ms to serialize/unserialize.
Note: Acl configuration will be cached in Production.
EDIT:
Sorry rules are in the 1500 - 2000 range. Roughly 300 roles and 300 resources.
Metadata
Metadata
Assignees
Labels
No labels