Skip to content

[stable31] feat: performance tuning for ACL rule derivation#4400

Merged
provokateurin merged 2 commits intostable31from
backport/4396/stable31
Feb 12, 2026
Merged

[stable31] feat: performance tuning for ACL rule derivation#4400
provokateurin merged 2 commits intostable31from
backport/4396/stable31

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot bot commented Feb 11, 2026

Backport of #4396

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Remove all the empty commits

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot backportbot bot requested review from Rello and provokateurin February 11, 2026 19:45
@backportbot backportbot bot added the 3. to review Items that need to be reviewed label Feb 11, 2026
@backportbot backportbot bot added this to the Nextcloud 31 milestone Feb 11, 2026
Optimized ACLManager::getRelevantRulesForPath() by replacing repeated array_merge() + array_unique() calls with map-style deduplication ($allPaths[$path] = true) and passing array_keys() to getRules(). This avoids repeated large-array rebuilds

Signed-off-by: Rello <Rello@users.noreply.github.com>
Signed-off-by: Rello <Rello@users.noreply.github.com>
@provokateurin provokateurin marked this pull request as ready for review February 12, 2026 08:29
@provokateurin provokateurin merged commit 6c948b0 into stable31 Feb 12, 2026
48 checks passed
@provokateurin provokateurin deleted the backport/4396/stable31 branch February 12, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants