-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Dynamic parallelism mechanism for all UploadQueues #1472
feat: Dynamic parallelism mechanism for all UploadQueues #1472
Conversation
28dfffb
to
23d32ef
Compare
5e164fd
to
9c276f5
Compare
6725743
to
a82e1f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesterday I thoroughly tested this branch. I'm happy with the way it behaves. I also don't see anything in the code that need to be changed, so opening for review.
This PR/issue depends on: |
7515d01
to
aa860d2
Compare
30a2822
to
28019f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks okay apart from one minor comment let me know what you think.
I just need to play a little bit with it.
kDriveCore/Data/Upload/Servicies/UploadService/Parallelism/UploadParallelismOrchestrator.swift
Outdated
Show resolved
Hide resolved
aa860d2
to
5b2de0f
Compare
4492c9f
to
93e733b
Compare
5b2de0f
to
877a325
Compare
337b977
to
cd2779c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a new self review
e25d8eb
to
285c296
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a new self review
877a325
to
f2604f5
Compare
…uld break all the current code
…load parallelism algo per queue
…a parallelism value outside of the DI queue
…tside the DI queue
…er filter function
…d to clean a Sonar warning
…plexity and a Sonar warning
… a dedicated queue
a442d06
to
ba9d70a
Compare
|
Since we now have two upload queues, each queue is no longer managing its own degree of parallelism.
A new
UploadParallelismOrchestrator
object now dynamically computes the optimal queue depth for each queue in a way that makes it equivalent to the previous mechanism with one queue only.Depends on Infomaniak/swift-dependency-injection#12
Depends on #1478