Skip to content

perf: avoid DIing IRootFolder at every shared storage init#61530

Open
salmart-dev wants to merge 1 commit into
masterfrom
fix/rootfolder-sharedstorage-init
Open

perf: avoid DIing IRootFolder at every shared storage init#61530
salmart-dev wants to merge 1 commit into
masterfrom
fix/rootfolder-sharedstorage-init

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Jun 23, 2026

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

The init function in SharedStorage can be called thousand times in servers with many shares, avoid calling Server::get(IRootFolder::class) each time and inject it once per call of MountProvider.

TODO

  • ...

Checklist

AI (if applicable)

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

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev force-pushed the fix/rootfolder-sharedstorage-init branch from 1b68a0e to 93a4f88 Compare June 23, 2026 09:10
@salmart-dev salmart-dev self-assigned this Jun 23, 2026
@salmart-dev salmart-dev added this to the Nextcloud 35 milestone Jun 23, 2026
@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@salmart-dev salmart-dev marked this pull request as ready for review June 23, 2026 09:11
@salmart-dev salmart-dev requested a review from a team as a code owner June 23, 2026 09:11
@salmart-dev salmart-dev requested review from Altahrim, ArtificialOwl, come-nc and icewind1991 and removed request for a team June 23, 2026 09:11
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