| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Speeds up self-check by about 0.6%. The assertion is very hot, and the original version always created a set, which is slow.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
Sorry, something went wrong.
|
There's an assert of exactly same form in is_proper_subtype, is it also worth rewriting? |
Sorry, something went wrong.
|
@sterliakov Yes, that one should be rewritten as well (it is probably less hot, but still worth doing). |
Sorry, something went wrong.
…#19463) This was suggested by @sterliakov in #19384 (comment) This is a part of a set of micro-optimizations that improve self check performance by ~5.5%.
| Back | FazBrowse Home | New Git URL |
Speeds up self-check by about 0.6%. The assertion is very hot, and the original version always created a set, which is slow.