Skip to content

Improve performance when dealing with large numbers of shares - #10724

Merged
MorrisJobke merged 11 commits into
masterfrom
large-share-count-performance
Aug 24, 2018
Merged

Improve performance when dealing with large numbers of shares#10724
MorrisJobke merged 11 commits into
masterfrom
large-share-count-performance

Conversation

@icewind1991

@icewind1991icewind1991 commented Aug 16, 2018

Copy link
Copy Markdown
Member

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>
@icewind1991icewind1991 added the 2. developing Work in progress label Aug 16, 2018
@icewind1991icewind1991 added this to the Nextcloud 14 milestone Aug 16, 2018
@icewind1991
icewind1991force-pushed the large-share-count-performance branch from 5ba91c4 to f1b6a69CompareAugust 16, 2018 17:30
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991
icewind1991force-pushed the large-share-count-performance branch 2 times, most recently from 6286680 to 20e1042CompareAugust 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
icewind1991force-pushed the large-share-count-performance branch from 20e1042 to 67f3d6fCompareAugust 16, 2018 19:28
@icewind1991icewind1991 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 16, 2018
@rullzer

Copy link
Copy Markdown
Member

wow. That are some impressive numbers.

@rullzerrullzer mentioned this pull request Aug 22, 2018
3 tasks

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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 masterAug 24, 2018
@MorrisJobke
MorrisJobke deleted the large-share-count-performance branch August 24, 2018 15:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@icewind1991@rullzer@MorrisJobke