-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Place the calculation of mask prior to the calls of comp in replace_list to improve performance #35229
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
Merged
jreback
merged 11 commits into
pandas-dev:master
from
chrispe:improve-replace_list-performance
Jul 15, 2020
+12
−7
Merged
Place the calculation of mask prior to the calls of comp in replace_list to improve performance #35229
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d4d2229
Placed the calculation of mask prior to the call of _compare_or_regex…
chrispe ef8940e
Fix argument type
chrispe 8d47535
Added entry in the whatsnew
chrispe 799e24a
Updated argument description
chrispe 5b6912c
Merge branch 'master' of https://github.com/pandas-dev/pandas into im…
chrispe 4301d57
Fix arg ordering and types
chrispe 54e0fdc
Merge branch 'master' of https://github.com/pandas-dev/pandas into im…
chrispe d2ebfa0
Merge branch 'master' of https://github.com/pandas-dev/pandas into im…
chrispe ec878a1
Update argument types in comp
chrispe dc2a00b
Update v1.1.0.rst
chrispe 7eef4aa
Correct mask arg type
chrispe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
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.
Does this improve performance relative to 1.0.5, or just master? We only need this if it's faster relative to 1.0.5
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.
Locally, I have this at ~1.5x slower than 1.0.5 on the example from #33920. So seems like we could still use some work to get us back to 1.0.x speeds, as long as we don't sacrifice correctness.
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.
Yes indeed, those improvements are only relative to master. So, maybe it doesn't make sense to list this change at all in the whatsnew document. I'll have it removed. However, this should still be merged to 1.1.0 (if we manage on time) right? And then keep improving on it?