Skip to content

Do not call best_matches() unless we show the message#21307

Open
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:no-best-matches
Open

Do not call best_matches() unless we show the message#21307
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:no-best-matches

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

This function is very slow. While playing with parallel checking for home-assistant/core I found that we spend ~30% in this function (compiled, 12 workers).

Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'd mentioned this in one of the PRs, but guess the change wasn't made to the other PRs

@hauntsaninja
Copy link
Copy Markdown
Collaborator

hauntsaninja commented Apr 24, 2026

Also great that you're looking at profiles on homeassistant, thanks for doing that

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants