Skip to content

perf(share): Collapse filtering and formatting into a single loop in getSharedWithMe()#61755

Draft
joshtrichards wants to merge 1 commit into
masterfrom
jtr/perf-getSharedWithMe-small-optimization
Draft

perf(share): Collapse filtering and formatting into a single loop in getSharedWithMe()#61755
joshtrichards wants to merge 1 commit into
masterfrom
jtr/perf-getSharedWithMe-small-optimization

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Jul 3, 2026

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Fuse merge/filter/format into one pass.

Instead of:

  • merge all arrays
  • filter to $filteredShares
  • loop again

do one pass over all shares.

Cheap win in terms of CPU/memory usage.

TODO

  • ...

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>
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.

1 participant