Permalink
Please
sign in to comment.
Browse files
bpo-39028: Performance enhancement in keyword extraction (GH-17576)
All keywords should first be checked for pointer identity. Only after that failed for all keywords (unlikely) should unicode equality be used. The original code would call unicode equality on any non-matching keyword argument. Meaning calling it often e.g. when a function has many kwargs but only the last one is provided.
- Loading branch information
Showing
with
8 additions
and 3 deletions.
| @@ -0,0 +1 @@ | ||
| Slightly improve the speed of keyword argument parsing with many kwargs by strengthening the assumption that kwargs are interned strings. |
0 comments on commit
75bb07e