-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
SPMI: Improve speed significantly for large diffs #76238
Merged
Merged
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
008d5ed
SPMI: Improve speed significantly for large diffs
jakobbotsch 6d78190
Remove --retainOnlyTopFiles
jakobbotsch c96e35c
Test change with tons of diffs
jakobbotsch f079301
DRY it up
jakobbotsch 67aca1a
Fix bad refactoring
jakobbotsch 95583e3
Include utility for std::move
jakobbotsch be172a6
Fix Clang/GCC compilation
jakobbotsch 22640fc
Fix build
jakobbotsch 4a77ff5
Proper move constructor for clr_std::vector, delete copy constructors
jakobbotsch c17deea
Fix
jakobbotsch 504d368
Fix superpmi_diffs.py
jakobbotsch 30c0a8d
Run jit-format and force new CI run
jakobbotsch ccb37d8
Minor fixes
jakobbotsch 55ae448
Nitpicking order..
jakobbotsch 1f3d9f0
Revert morph change
jakobbotsch c36637d
JIT: Smarter ordering of late args based on register uses
jakobbotsch a76ef14
Fix build
jakobbotsch 472749f
Fix arg reg check
jakobbotsch f283a60
Generalize
jakobbotsch 5536609
Revert JIT changes
jakobbotsch 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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
Oops, something went wrong.
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.
What is this ".format..."? Shouldn't it use the logging '%s' format? And I don't see any replacement token.
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.
logging
uses the same conventions as the old%
formatting operator. This is the newerstr.format
, which I think would normally be preferred... except thatlogging
probably isn't going to format the string unless the particular logging level has been specified.(and yes, it is missing
{}
or{0}
)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.
Whoops yes, at one point I was printing the number of diffs as part of this line, but I decided to print it on a new line at the end of each collection diff so that it gets printed last instead, and you can see it while waiting for the next diffs.
I'll keep in mind to remove this with my next change.
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.
It looks like logging can be switched to the new formatter: https://docs.python.org/3/howto/logging-cookbook.html#using-particular-formatting-styles-throughout-your-application
That would maybe be a nice cleanup at some point.
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.
Ah, looks like 'style' came with 3.2. Not sure what version of Python is on the CI systems, but presumably better than that.
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, I (and some others) have been using new style formatting in various scripts for a while now without issues.