Skip to content

perf(files_sharing): simplify tag population in ShareAPIController#61853

Draft
joshtrichards wants to merge 3 commits into
masterfrom
jtr/perf-sharing-populateTags
Draft

perf(files_sharing): simplify tag population in ShareAPIController#61853
joshtrichards wants to merge 3 commits into
masterfrom
jtr/perf-sharing-populateTags

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

Build an index in ShareAPIController::populateTags() instead of scanning the full result list for each tagged file.

Notes

Multiple formatted share entries can refer to the same file_source, so the index keeps all matching positions.

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>
@joshtrichards joshtrichards force-pushed the jtr/perf-sharing-populateTags branch from bfed23e to 0fd8479 Compare July 6, 2026 16:45
@susnux susnux added the community pull requests from community label Jul 7, 2026
Adjust the Psalm docblock for populateTags() to reflect the internal implementation change without changing the returned data shape.

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