René's URL Explorer Experiment


Title: [mypyc] Optimize calls to final classes by jairov4 · Pull Request #17886 · python/mypy · GitHub

Open Graph Title: [mypyc] Optimize calls to final classes by jairov4 · Pull Request #17886 · python/mypy

X Title: [mypyc] Optimize calls to final classes by jairov4 · Pull Request #17886 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: Fixes #9612 This change allows to gain more efficiency where classes are annotated with @final bypassing entirely the vtable for method calls and property accessors. For example: In @final class Ve...

X Description: Fixes #9612 This change allows to gain more efficiency where classes are annotated with @final bypassing entirely the vtable for method calls and property accessors. For example: In @final class Ve...

Opengraph URL: https://github.com/python/mypy/pull/17886

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0c0a95be-f7cb-1913-7757-5de4eef22d5d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9154:3A7693:29F838D:3921925:6B004C14
html-safe-nonce3c39c4f7b3b6b0567e709367546fed850dd7084bed43a5c730d23f0f0a037e10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTU0OjNBNzY5MzoyOUY4MzhEOjM5MjE5MjU6NkIwMDRDMTQiLCJ2aXNpdG9yX2lkIjoiNDExMDEwNTY1NjE5NzkyNTkwOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb4f7237c03e9d292d249db8e18f752125c25ed54ec62f27589d85e755f20f2ba
hovercard-subject-tagpull_request:2109561645
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/17886/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/320e6d434b620cbf27d43c2e14663f932922650ecdf7c40352935e2ab832b0ae/python/mypy/pull/17886
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/320e6d434b620cbf27d43c2e14663f932922650ecdf7c40352935e2ab832b0ae/python/mypy/pull/17886
og:image:altFixes #9612 This change allows to gain more efficiency where classes are annotated with @final bypassing entirely the vtable for method calls and property accessors. For example: In @final class Ve...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejairov4
hostnamegithub.com
expected-hostnamegithub.com
Nonef9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b
turbo-cache-controlno-cache
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb27c5dde30676028abd5c5fc53ce5c9b625f8281
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/17886#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/pull/17886
Reloadhttps://github.com/python/mypy/pull/17886
Reloadhttps://github.com/python/mypy/pull/17886
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests546 (546)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
jairov4:mypyc-opt-finalhttps://github.com/jairov4/mypy/tree/mypyc-opt-final
Conversationhttps://github.com/python/mypy/pull/17886
Commits15 (15)https://github.com/python/mypy/pull/17886/commits
Checkshttps://github.com/python/mypy/pull/17886/checks
Files changedhttps://github.com/python/mypy/pull/17886/files
[mypyc] Optimize calls to final classeshttps://github.com/python/mypy/pull/17886#top
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
jairov4:mypyc-opt-finalhttps://github.com/jairov4/mypy/tree/mypyc-opt-final
https://github.com/jairov4
jairov4https://github.com/jairov4
Oct 6, 2024https://github.com/python/mypy/pull/17886#issue-2568882194
Please reload this pagehttps://github.com/python/mypy/pull/17886
#9612https://github.com/python/mypy/issues/9612
Please reload this pagehttps://github.com/python/mypy/pull/17886
jairov4https://github.com/jairov4
October 6, 2024 15:24https://github.com/python/mypy/pull/17886#commits-pushed-45dbf03
https://github.com/jairov4
Optimize calls to final classeshttps://github.com/python/mypy/pull/17886/commits/45dbf03f08e0cb29eaf173e24dcf545771acdcd9
45dbf03https://github.com/python/mypy/pull/17886/commits/45dbf03f08e0cb29eaf173e24dcf545771acdcd9
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/17886/commits/6f16840f035917f926147cfc55b887846e4d1d29
6f16840https://github.com/python/mypy/pull/17886/commits/6f16840f035917f926147cfc55b887846e4d1d29
https://pre-commit.cihttps://pre-commit.ci
https://github.com/jairov4
Assert rtypehttps://github.com/python/mypy/pull/17886/commits/38a995f6adab6ebaf8c8f446928b708c6dcb54df
38a995fhttps://github.com/python/mypy/pull/17886/commits/38a995f6adab6ebaf8c8f446928b708c6dcb54df
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/17886/commits/46ce3e687c7029376fa856482d82dfed636719c9
46ce3e6https://github.com/python/mypy/pull/17886/commits/46ce3e687c7029376fa856482d82dfed636719c9
https://pre-commit.cihttps://pre-commit.ci
https://github.com/jairov4
Add test case forhttps://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191
@Finalhttps://github.com/Final
attributehttps://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191
d44bd16https://github.com/python/mypy/pull/17886/commits/d44bd16bb23b2eb3ddf3021b0d886f0109b59191
https://github.com/jairov4
Rename new test caseshttps://github.com/python/mypy/pull/17886/commits/b4b37efb5b6b24b27387ccae5ff5db024f5a835d
b4b37efhttps://github.com/python/mypy/pull/17886/commits/b4b37efb5b6b24b27387ccae5ff5db024f5a835d
https://github.com/jairov4
ClassIR serializationhttps://github.com/python/mypy/pull/17886/commits/92cace581adca75a49d7e6a0f92b181262f9d62f
92cace5https://github.com/python/mypy/pull/17886/commits/92cace581adca75a49d7e6a0f92b181262f9d62f
https://github.com/jairov4
ClassIR deserializationhttps://github.com/python/mypy/pull/17886/commits/1d6cacd622be2a3fd9debe407a80505c31eca226
1d6cacdhttps://github.com/python/mypy/pull/17886/commits/1d6cacd622be2a3fd9debe407a80505c31eca226
https://github.com/jairov4
jairov4https://github.com/jairov4
Oct 7, 2024https://github.com/python/mypy/pull/17886#issuecomment-2395884419
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/17886
jairov4https://github.com/jairov4
October 7, 2024 07:42https://github.com/python/mypy/pull/17886#commits-pushed-88a2ccf
https://github.com/jairov4
Restore the placement vtable to preserve the PyObject layouthttps://github.com/python/mypy/pull/17886/commits/88a2ccf182fe45cd0dcf3d21dd151b7678e77d29
88a2ccfhttps://github.com/python/mypy/pull/17886/commits/88a2ccf182fe45cd0dcf3d21dd151b7678e77d29
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/17886/commits/59f3f13e716ae3c3d0c0bd433fa9df76e4b6534a
59f3f13https://github.com/python/mypy/pull/17886/commits/59f3f13e716ae3c3d0c0bd433fa9df76e4b6534a
https://pre-commit.cihttps://pre-commit.ci
https://github.com/jairov4
Restore the placement vtable to preserve the PyObject layouthttps://github.com/python/mypy/pull/17886/commits/232db96f90795d4f8710a5316353eb3a19ebf4ee
232db96https://github.com/python/mypy/pull/17886/commits/232db96f90795d4f8710a5316353eb3a19ebf4ee
https://github.com/jairov4
revert to initialize vtable alwayshttps://github.com/python/mypy/pull/17886/commits/f36c774014debb5e1540ed90b3befb9bad04535a
f36c774https://github.com/python/mypy/pull/17886/commits/f36c774014debb5e1540ed90b3befb9bad04535a
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Oct 10, 2024 https://github.com/python/mypy/pull/17886#pullrequestreview-2359543079
View reviewed changes https://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/17886#pullrequestreview-2359543079
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/17886
mypyc/irbuild/classdef.pyhttps://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-072d734fdb53b14cd1bdb5f8575d41dabd897708687cdc8c6cac4352b3e75bf6
Please reload this pagehttps://github.com/python/mypy/pull/17886
mypyc/codegen/emitfunc.pyhttps://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-13d4e0cda55df0dfa7aee8e93496ed9625df4bbcff9bb3e19c920a45b87a717e
Please reload this pagehttps://github.com/python/mypy/pull/17886
mypyc/test-data/run-classes.testhttps://github.com/python/mypy/pull/17886/files/f36c774014debb5e1540ed90b3befb9bad04535a#diff-5a56e81ec59766907dfaa6ce1e0b60fc607253985118b4e2ff6a7b59d20dfd95
Please reload this pagehttps://github.com/python/mypy/pull/17886
jairov4https://github.com/jairov4
October 13, 2024 19:11https://github.com/python/mypy/pull/17886#commits-pushed-a4872ac
https://github.com/jairov4
Address PR commentshttps://github.com/python/mypy/pull/17886/commits/a4872ac81366dd3cb14c10f4dad0af9ba5a361d3
a4872achttps://github.com/python/mypy/pull/17886/commits/a4872ac81366dd3cb14c10f4dad0af9ba5a361d3
https://github.com/marketplace/pre-commit-ci
[pre-commit.ci] auto fixes from pre-commit.com hookshttps://github.com/python/mypy/pull/17886/commits/220cfde32044ee629f56fe926da9df6f8d0e9349
220cfdehttps://github.com/python/mypy/pull/17886/commits/220cfde32044ee629f56fe926da9df6f8d0e9349
https://pre-commit.cihttps://pre-commit.ci
https://github.com/jairov4
Add new test casehttps://github.com/python/mypy/pull/17886/commits/b664fbae893fdf78ac428179a71d7cfecc44e8d8
b664fbahttps://github.com/python/mypy/pull/17886/commits/b664fbae893fdf78ac428179a71d7cfecc44e8d8
https://github.com/jairov4
jairov4https://github.com/jairov4
Oct 14, 2024https://github.com/python/mypy/pull/17886#issuecomment-2409646231
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/17886
https://github.com/jairov4
jairov4https://github.com/jairov4
Oct 14, 2024 https://github.com/python/mypy/pull/17886#ref-pullrequest-2584523540
[mypyc] Optimize dunder methods #17934 https://github.com/python/mypy/pull/17934
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Oct 14, 2024 https://github.com/python/mypy/pull/17886#pullrequestreview-2365821117
View reviewed changes https://github.com/python/mypy/pull/17886/files/b664fbae893fdf78ac428179a71d7cfecc44e8d8
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/17886#pullrequestreview-2365821117
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/17886
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
cbd96f9https://github.com/python/mypy/commit/cbd96f96a67bc5c2088457fcd30742644614f00b
Oct 14, 2024https://github.com/python/mypy/pull/17886#event-14628941142
https://github.com/jairov4
jairov4https://github.com/jairov4
October 15, 2024 21:42https://github.com/python/mypy/pull/17886#event-14664931383
https://github.com/danceratopz
danceratopzhttps://github.com/danceratopz
Jun 9, 2026 https://github.com/python/mypy/pull/17886#ref-pullrequest-4542229731
chore(specs): add final decorator ethereum/execution-specs#2934 https://github.com/ethereum/execution-specs/pull/2934
https://github.co/hiddenchars
https://github.com/python/mypy/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17886
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/python/mypy/pull/17886/files/b664fbae893fdf78ac428179a71d7cfecc44e8d8
Please reload this pagehttps://github.com/python/mypy/pull/17886
[mypyc] support of @final types https://github.com/python/mypy/issues/9612
Please reload this pagehttps://github.com/python/mypy/pull/17886
https://github.com/jairov4
https://github.com/JukkaL
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.