Commit 9bfc6ae
committed
Optimize implementation of TypedDict types for **kwds
The implementation copied lots of callable types even when not using
the new feature, which was expensive. Now we only generate a copy if a
callable actually uses TypedDict types for **kwds.
This made self check 7-8% faster (when compiled with -O0).
The original implementation was in #13471.1 parent df6e828 commit 9bfc6ae
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1976 | 1976 | | |
1977 | 1977 | | |
1978 | 1978 | | |
1979 | | - | |
| 1979 | + | |
1980 | 1980 | | |
1981 | 1981 | | |
1982 | 1982 | | |
| |||
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
2129 | | - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
2130 | 2132 | | |
2131 | 2133 | | |
2132 | 2134 | | |
| |||
0 commit comments