Title: mypy 0.990 is 1000x slow on pydantic codebase vs 0.982 · Issue #14034 · python/mypy · GitHub
Open Graph Title: mypy 0.990 is 1000x slow on pydantic codebase vs 0.982 · Issue #14034 · python/mypy
X Title: mypy 0.990 is 1000x slow on pydantic codebase vs 0.982 · Issue #14034 · python/mypy
Description: Bug Report Running mypy on the current pydantic codebase (specifically the code as of pydantic/pydantic#4735), give the following run times: running mypy pydantic with mypy 0.982, and no .mypy_cache: 8s running mypy pydantic with mypy 0....
Open Graph Description: Bug Report Running mypy on the current pydantic codebase (specifically the code as of pydantic/pydantic#4735), give the following run times: running mypy pydantic with mypy 0.982, and no .mypy_cach...
X Description: Bug Report Running mypy on the current pydantic codebase (specifically the code as of pydantic/pydantic#4735), give the following run times: running mypy pydantic with mypy 0.982, and no .mypy_cach...
Opengraph URL: https://github.com/python/mypy/issues/14034
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy 0.990 is 1000x slow on pydantic codebase vs 0.982","articleBody":"**Bug Report**\r\n\r\nRunning mypy on the current pydantic codebase (specifically the code as of https://github.com/pydantic/pydantic/pull/4735), give the following run times:\r\n\r\n* running `mypy pydantic` with mypy `0.982`, and no `.mypy_cache`: 8s\r\n* running `mypy pydantic` with mypy `0.982`, `.mypy_cache` present: 0.17s\r\n* running `mypy pydantic` with mypy `0.990`, and no `.mypy_cache`: 3m19s\r\n* running `mypy pydantic` with mypy `0.990`, `.mypy_cache` present: 3m6s\r\n\r\n(1000x comes from `(3 * 60 + 6) / 0.17`)\r\n\r\nThere are quite a few errors, mostly due to `no_implicit_optional=True`, but still - this seems like a significant regression.\r\n\r\nWhile mypy 0.990 is running, I see 100% usage on 1 CPU.\r\n\r\n**To Reproduce**\r\n\r\nShould be as simple as cloning pydantic, checkout that branch (`uprev-mypy`), install requirements from `requirements/linting.txt`, run mypy.\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: `0.990`\r\n- Mypy command-line flags: just `mypy pydantic`\r\n- Mypy configuration options from `mypy.ini` (and other config files): see [this bit of `pyproject.toml`](https://github.com/pydantic/pydantic/blob/aea7016e6cbc7c589713e9ffb7891316d9cde262/pyproject.toml#L155-L187)\r\n- Python version used:3.10.0 (just realised how old my version of 3.10 is, I've upgraded to 3.10.8, same result)\r\n\r\n\r\n","author":{"url":"https://github.com/samuelcolvin","@type":"Person","name":"samuelcolvin"},"datePublished":"2022-11-08T11:20:14Z","url":"https://github.com/python/mypy/issues/14034"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6a7ca6a2-4f63-e5fd-4031-4589d2f08abf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C300:1BAA33:2282911:2DE233B:6B004E7C |
| html-safe-nonce | 4fab5020c34a89c1c8d63765c27fdb3a5d151f3894148f1878748ba6f690bd0a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzAwOjFCQUEzMzoyMjgyOTExOjJERTIzM0I6NkIwMDRFN0MiLCJ2aXNpdG9yX2lkIjoiNzg0MDYwOTA0NDI3OTYxMTAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c03cc866343ee65a7fec30bebbcaaddf9626001582c29c794ae35d1d36369106 |
| hovercard-subject-tag | issue:1440002516 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/14034/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e553393a968182751f334dff01424fb18c6e38d680ea0bed389331daf1ca632/python/mypy/issues/14034 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e553393a968182751f334dff01424fb18c6e38d680ea0bed389331daf1ca632/python/mypy/issues/14034 |
| og:image:alt | Bug Report Running mypy on the current pydantic codebase (specifically the code as of pydantic/pydantic#4735), give the following run times: running mypy pydantic with mypy 0.982, and no .mypy_cach... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samuelcolvin |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width