[SPARK-32298][ML] tree models prediction optimization#29095
Closed
zhengruifeng wants to merge 1 commit intoapache:masterfrom
Closed
[SPARK-32298][ML] tree models prediction optimization#29095zhengruifeng wants to merge 1 commit intoapache:masterfrom
zhengruifeng wants to merge 1 commit intoapache:masterfrom
Conversation
Contributor
Author
|
test: Results (durations): |
|
Test build #125804 has finished for PR 29095 at commit
|
Contributor
Author
|
friendly ping @huaxingao @srowen @viirya Different another attempt to save RAM, this should be a clear optimization. I found that those methods can not be marked |
Member
|
Is this also memory optimization? But looks like cpu time optimization from the description? |
Contributor
Author
|
@viirya This PR is only on cpu. |
srowen
approved these changes
Jul 16, 2020
Member
srowen
left a comment
There was a problem hiding this comment.
Looks good as a clean optimization.
Contributor
|
LGTM |
viirya
approved these changes
Jul 16, 2020
Member
|
Merged to master |
Contributor
Author
|
Thanks all! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
use while-loop instead of the recursive way
Why are the changes needed?
3% ~ 10% faster
Does this PR introduce any user-facing change?
No
How was this patch tested?
existing testsuites