Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance when dealing with large numbers of shares #10724

Merged
merged 11 commits into from Aug 24, 2018

Conversation

icewind1991
Copy link
Member

@icewind1991 icewind1991 commented Aug 16, 2018

Removes a number of loops.

Comparisons with 2k shares as the receiver:

Listing root folder with the shares in a subfolder: https://blackfire.io/profiles/compare/e0ff76bc-8d96-4842-9b34-37acaf446294/graph
Listing the folder containing all the shares: https://blackfire.io/profiles/compare/f6054929-f61e-43bb-8241-55550ecd5204/graph

Signed-off-by: Robin Appelman <robin@icewind.nl>
this changes the complexity from the number of mounts to the depth of
the path

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 2. developing Work in progress label Aug 16, 2018
@icewind1991 icewind1991 added this to the Nextcloud 14 milestone Aug 16, 2018
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 force-pushed the large-share-count-performance branch 2 times, most recently from 6286680 to 20e1042 Compare August 16, 2018 19:09
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
…directory

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
this saves searching for shares on non-public link dav requests

Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 16, 2018
@rullzer
Copy link
Member

rullzer commented Aug 17, 2018

wow. That are some impressive numbers.

@rullzer rullzer mentioned this pull request Aug 22, 2018
3 tasks
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Code looks good.
Lets get it in

@rullzer
Copy link
Member

rullzer commented Aug 24, 2018

The changes look save to me. I did some small smoke testing and it didn't blow up. Also for sharing we have quite a lot of tests

@MorrisJobke MorrisJobke merged commit e8817ed into master Aug 24, 2018
@MorrisJobke MorrisJobke deleted the large-share-count-performance branch August 24, 2018 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants