Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Conversation
seberg
changed the title
ENH: Fix performance issue in keyword extraction
bpo-39028: Fix performance issue in keyword extraction
seberg
changed the title
bpo-39028: Fix performance issue in keyword extraction
bpo-39028: Performance enhancement in keyword extraction
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.