Skip to content

perf(mounts): Replace many array_ by a simple loop#58275

Open
CarlSchwan wants to merge 1 commit into
masterfrom
carl/loop-root
Open

perf(mounts): Replace many array_ by a simple loop#58275
CarlSchwan wants to merge 1 commit into
masterfrom
carl/loop-root

Conversation

@CarlSchwan

@CarlSchwan CarlSchwan commented Feb 12, 2026

Copy link
Copy Markdown
Member

And allow to abort once we found a node when getFirstNodeById is called.

Note that now the sorting is done on the mountpoints instead of the node path, this has some behavior changes and I am not sure if this is 100% correct. See modified test.

  • Resolves: #

Summary

TODO

  • ...

Checklist

@CarlSchwan CarlSchwan force-pushed the carl/loop-root branch 2 times, most recently from 18e3e31 to 82664e1 Compare March 5, 2026 14:23
@CarlSchwan CarlSchwan marked this pull request as ready for review March 5, 2026 14:24
@CarlSchwan CarlSchwan requested a review from a team as a code owner March 5, 2026 14:24
@CarlSchwan CarlSchwan requested review from artonge, icewind1991, leftybournes, salmart-dev and sorbaugh and removed request for a team March 5, 2026 14:24
@CarlSchwan CarlSchwan force-pushed the carl/loop-root branch 2 times, most recently from e6bb2b3 to 304adf5 Compare March 5, 2026 15:39
@susnux susnux added this to the Nextcloud 35 milestone Jun 9, 2026
Comment thread lib/private/Files/Node/Root.php Outdated
Comment thread lib/private/Files/Node/Root.php Outdated
And allow to abort once we found a node when getFirstNodeById is called.

Signed-off-by: Carl Schwan <carlschwan@kde.org>

@come-nc come-nc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sorting thing is weird. This may reopen previously closed issues by #28220
It’s not clear to me if the sorting on mountpoint is enough to always get the same order and if that’s all we care about or if that will cause trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants