xleoken opened a new pull request, #2119:
URL: https://github.com/apache/incubator-celeborn/pull/2119
<!--
Thanks for sending a pull request! Here are some tips for you:
- Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX]
Your PR title ...'.
- Be sure to keep the PR description updated to reflect all changes.
- Please write your PR title to summarize what this PR proposes.
- If possible, provide a concise example to reproduce the issue for a
faster review.
-->
### What changes were proposed in this pull request?
The origin algorithm called subList method twice and it also looks quite
complex. We can union two same list, and call subList once can also achieve the
goal.
e.g
```
A = List(1, 3, 5, 6, 7, 8)
B = A + A = (1, 3, 5, 6, 7, 8, 1, 3, 5, 6, 7 ,8)
let start = 3, end = 7
C = (6, 7, 8, 1)
```
### Why are the changes needed?
Improve the algorithm for available workers.
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
Local tested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]