Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance improvements #464

Closed
wants to merge 3 commits into from

Conversation

DetachHead
Copy link
Owner

fixes #461

@DetachHead DetachHead changed the title don't check all unreachable statements for assert never moments for performance reasons only check the first unreachable statement when doing assert_never check and only run reportUnsafeMultipleInheritance when the rule is enabled Jul 2, 2024

This comment has been minimized.

1 similar comment

This comment has been minimized.

@DetachHead DetachHead force-pushed the bug-fixes-and-performance-improvements branch from 953fee1 to fc161d9 Compare July 2, 2024 22:52
@DetachHead DetachHead changed the title only check the first unreachable statement when doing assert_never check and only run reportUnsafeMultipleInheritance when the rule is enabled performance improvements Jul 2, 2024

This comment has been minimized.

@DetachHead DetachHead force-pushed the bug-fixes-and-performance-improvements branch from fc161d9 to 7e11029 Compare July 6, 2024 04:20
Copy link
Contributor

github-actions bot commented Jul 6, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

dd-trace-py (https://github.com/DataDog/dd-trace-py)
-   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/datadog/profiling/ddup/test/interface.py:62:16 - error: "_exit" is private and used outside of the module in which it is declared (reportPrivateUsage)
- 141026 errors, 0 warnings, 0 notes
+ 141025 errors, 0 warnings, 0 notes

@DetachHead
Copy link
Owner Author

closing this as it didn't seem to have any impact on performance

@DetachHead DetachHead closed this Jul 6, 2024
@DetachHead DetachHead deleted the bug-fixes-and-performance-improvements branch July 6, 2024 05:43
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.

LSP server extremely slow to respond since v1.13.0 (20+ times slower than Pyright)
1 participant