Skip to content

perf(sharing): reduce share listing overhead#61872

Draft
joshtrichards wants to merge 2 commits into
masterfrom
jtr/perf-ShareAPIController-dup-detection
Draft

perf(sharing): reduce share listing overhead#61872
joshtrichards wants to merge 2 commits into
masterfrom
jtr/perf-ShareAPIController-dup-detection

Conversation

@joshtrichards

Copy link
Copy Markdown
Member

Summary

  • avoid repeated array_merge() calls while building the share list
  • avoid linear in_array() duplicate checks by tracking known share IDs in an isset()-backed lookup table

Reduces CPU and memory usage on folders containing a large number of files or shares

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants