Skip to content

[SPARK-37984][SHUFFLE] Avoid calculating all outstanding requests to improve performance.#35276

Closed
weixiuli wants to merge 2 commits into
apache:masterfrom
weixiuli:SPARK-37984
Closed

[SPARK-37984][SHUFFLE] Avoid calculating all outstanding requests to improve performance.#35276
weixiuli wants to merge 2 commits into
apache:masterfrom
weixiuli:SPARK-37984

Conversation

@weixiuli

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Avoid calculating all outstanding requests to improve performance.

Why are the changes needed?

Follow the comment (#34711 (review)) , we can implement a "has outstanding requests" method in the response handler that doesn't even need to get a count,let's do this with PR.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Exist unittests.

@github-actions github-actions Bot added the CORE label Jan 22, 2022
@weixiuli

Copy link
Copy Markdown
Contributor Author

Friendly cc @srowen @dongjoon-hyun

@srowen

srowen commented Jan 22, 2022

Copy link
Copy Markdown
Member

Does this change performance much? it's still getting the size of every collection. isEmpty might make it a little more optimal. OK either way just might not make any difference

@weixiuli

Copy link
Copy Markdown
Contributor Author

Does this change performance much? it's still getting the size of every collection. isEmpty might make it a little more optimal. OK either way just might not make any difference

Done.

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@srowen srowen 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.

Are there are any other places where numOutstandingRequests is compared to 0?
This seems OK though I doubt it will make a difference

@weixiuli

Copy link
Copy Markdown
Contributor Author

Are there are any other places where numOutstandingRequests is compared to 0?

No, I checked again and confirmed that the PR included all of them. @srowen

@srowen srowen closed this in f8ff786 Jan 24, 2022
@srowen

srowen commented Jan 24, 2022

Copy link
Copy Markdown
Member

Merged to master

@weixiuli

Copy link
Copy Markdown
Contributor Author

Thanks @srowen

FMX pushed a commit to apache/celeborn that referenced this pull request Feb 23, 2024
… performance

### What changes were proposed in this pull request?
Refer [SPARK-37894](https://issues.apache.org/jira/browse/SPARK-37984)/ apache/spark#35276
Avoid calculating all outstanding requests to improve performance

### Why are the changes needed?
Ditto.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?
Not needed.

Closes #2319 from turboFei/SPARK-37984_backport.

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
FMX pushed a commit to apache/celeborn that referenced this pull request Feb 23, 2024
… performance

### What changes were proposed in this pull request?
Refer [SPARK-37894](https://issues.apache.org/jira/browse/SPARK-37984)/ apache/spark#35276
Avoid calculating all outstanding requests to improve performance

### Why are the changes needed?
Ditto.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?
Not needed.

Closes #2319 from turboFei/SPARK-37984_backport.

Authored-by: Fei Wang <fwang12@ebay.com>
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
(cherry picked from commit 621a719)
Signed-off-by: mingji <fengmingxiao.fmx@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants