-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkexpr: speedup argument count check (#12703)
Replace List with Dict to avoid O(n**2) behavior in `check_for_extra_actual_arguments` This manifests for instance when initializing a set with `set([...])` instead of a set literal `{...}`. For large sets of literals (~80k entries) this change bring the typechecking of a single set initializer from over 1 min down to under 1s.
- Loading branch information
1 parent
dd6d786
commit a56ebec
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
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