Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.1k
[mypyc] Precompute set literals for "in" ops against / iteration over set literals#14409
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
b0f57ab mypyc: cherry picked wip from a year ago
ichard26c8d2dda [wip] [mypyc] Precompute set literals for in ops
ichard26779a598 Stablize pprint of frozenset literals
ichard267fabcfe Fix byte literals & clean up precompute_set_literal()
ichard2697faab5 [wip] more tests
ichard263ccf951 Update irbuild and add run tests
ichard26de47fef Merge branch 'master' into faster-in-for-set-literals
ichard260036e20 Clean up patch & add boolean to tests
ichard26e1527e2 Optimize for ... in <set-literal>
ichard26e3d3045 Oh look, I found constant_fold_expr()
ichard268d68a7b Run flake8/isort
ichard261b75b7d I forgot Final is a 3.8+ feature >.<
ichard261a55fa4 Work around mypyc bug ...
ichard263d44293 Work around mypyc bug ... attempt 2
ichard26fefac47 Work around mypyc bug ... attempt 3
ichard269cdfc98 Add error handling + use test_* syntax instead
ichard262f18f30 Improve precompute_set_literal() docstring
ichard26File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
[wip] [mypyc] Precompute set literals for in ops
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitc8d2ddaddd64c3142d20a7728b72fae781b1c78b
There are no files selected for viewing
14 changes: 14 additions & 0 deletionsmypyc/analysis/ircheck.py
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
2 changes: 1 addition & 1 deletionmypyc/codegen/emitmodule.py
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
56 changes: 23 additions & 33 deletionsmypyc/codegen/literals.py
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
10 changes: 9 additions & 1 deletionmypyc/ir/ops.py
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
96 changes: 62 additions & 34 deletionsmypyc/irbuild/expression.py
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
18 changes: 18 additions & 0 deletionsmypyc/test-data/irbuild-set.test
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.