Speed up the default plugin by JukkaL · Pull Request #19385 · python/mypy

added 3 commits

July 6, 2025 12:36

JelleZijlstra

ilevkivskyi

@JukkaL JukkaL deleted the mypyc-micro-opt-2 branch

July 7, 2025 09:09

JukkaL added a commit that referenced this pull request

Jul 16, 2025
Use precalculated set objects in more places.

This is similar to #19385. Some cases were still unoptimized.

I used trace logging (#19457) to identify functions where we were
creating many set objects, and I noticed that these were unncessary.

This is a part of a set of micro-optimizations that improve self check
performance by ~5.5%.

JukkaL added a commit that referenced this pull request

Jul 16, 2025
Use precalculated set objects in more places.

This is similar to #19385. Some cases were still unoptimized.

I used trace logging (#19457) to identify functions where we were
creating many set objects, and I noticed that these were unnecessary.

This is a part of a set of micro-optimizations that improve self check
performance by ~5.5%.