René's URL Explorer Experiment


Title: GH-107674: Avoid allocating boxed ints for `sys.settrace` line events by markshannon · Pull Request #107780 · python/cpython · GitHub

Open Graph Title: GH-107674: Avoid allocating boxed ints for `sys.settrace` line events by markshannon · Pull Request #107780 · python/cpython

X Title: GH-107674: Avoid allocating boxed ints for `sys.settrace` line events by markshannon · Pull Request #107780 · python/cpython

Description: The benchmarks are noisy but show a 6% performance increase for coverage. Issue: sys.settrace dramatic slowdown in 3.12 #107674

Open Graph Description: The benchmarks are noisy but show a 6% performance increase for coverage. Issue: sys.settrace dramatic slowdown in 3.12 #107674

X Description: The benchmarks are noisy but show a 6% performance increase for coverage. Issue: sys.settrace dramatic slowdown in 3.12 #107674

Opengraph URL: https://github.com/python/cpython/pull/107780

X: @github

direct link

Domain: github.com

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:6e2cabea-cfad-8d08-3d02-bf65d63c2d8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C3C:9CED1:277EF12:3555384:696AE143
html-safe-nonce93b0677c2cc2cdc601f06408ddaebebdc5ac47779f0f914b357e4cc4f30f48ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzNDOjlDRUQxOjI3N0VGMTI6MzU1NTM4NDo2OTZBRTE0MyIsInZpc2l0b3JfaWQiOiIyMjQ1MTQ0NDk3MzQwNzM1ODExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac74322871fb007b8a7e5d8f7aea0ab54adc15e4fe67c64c7b745b80a723d8320c
hovercard-subject-tagpull_request:1466936153
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/cpython/107780/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ad885486cfd7e93c7e498a912570a477d9ac75e8624ac69d30e0625e14f03729/python/cpython/pull/107780
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ad885486cfd7e93c7e498a912570a477d9ac75e8624ac69d30e0625e14f03729/python/cpython/pull/107780
og:image:altThe benchmarks are noisy but show a 6% performance increase for coverage. Issue: sys.settrace dramatic slowdown in 3.12 #107674
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkshannon
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/107780#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107780
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107780
Sign up https://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%2Fcpython
Reloadhttps://github.com/python/cpython/pull/107780
Reloadhttps://github.com/python/cpython/pull/107780
Reloadhttps://github.com/python/cpython/pull/107780
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/107780
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/107780
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/107780#issue-comment-box
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:tweak-ints-monitoringhttps://github.com/faster-cpython/cpython/tree/tweak-ints-monitoring
GH-107674: Avoid allocating boxed ints for sys.settrace line events https://github.com/python/cpython/pull/107780#top
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:tweak-ints-monitoringhttps://github.com/faster-cpython/cpython/tree/tweak-ints-monitoring
Conversation 7 https://github.com/python/cpython/pull/107780
Commits 6 https://github.com/python/cpython/pull/107780/commits
Checks 0 https://github.com/python/cpython/pull/107780/checks
Files changed https://github.com/python/cpython/pull/107780/files
Please reload this pagehttps://github.com/python/cpython/pull/107780
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/markshannon
markshannonhttps://github.com/markshannon
Aug 8, 2023https://github.com/python/cpython/pull/107780#issue-1841360683
Please reload this pagehttps://github.com/python/cpython/pull/107780
benchmarkshttps://github.com/faster-cpython/benchmarking-public/tree/main/results/bm-20230805-3.13.0a0-83ffca9
sys.settrace dramatic slowdown in 3.12 #107674https://github.com/python/cpython/issues/107674
Please reload this pagehttps://github.com/python/cpython/pull/107780
markshannonhttps://github.com/markshannon
August 5, 2023 01:57https://github.com/python/cpython/pull/107780#commits-pushed-0ccd3bb
https://github.com/markshannon
Use PyLong_FromLong instead of PyLong_FromSsize_t in instrumentation.c.https://github.com/python/cpython/pull/107780/commits/0ccd3bbd2d7143036e52c7f8fb08875ace58263f
0ccd3bbhttps://github.com/python/cpython/pull/107780/commits/0ccd3bbd2d7143036e52c7f8fb08875ace58263f
https://github.com/markshannon
Avoid boxing and unboxing line number for sys.settracehttps://github.com/python/cpython/pull/107780/commits/83ffca904ca888038303bdd64a31105853d22fd7
83ffca9https://github.com/python/cpython/pull/107780/commits/83ffca904ca888038303bdd64a31105853d22fd7
https://github.com/markshannon
Add newshttps://github.com/python/cpython/pull/107780/commits/de050f2c3aa38d7b4b1a922b020f8d45370cf34e
de050f2https://github.com/python/cpython/pull/107780/commits/de050f2c3aa38d7b4b1a922b020f8d45370cf34e
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 7, 2023 https://github.com/python/cpython/pull/107780#ref-issue-1837956644
sys.settrace dramatic slowdown in 3.12 #107674 https://github.com/python/cpython/issues/107674
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 8, 2023https://github.com/python/cpython/pull/107780#event-10035858156
https://github.com/markshannon
markshannonhttps://github.com/markshannon
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Aug 8, 2023https://github.com/python/cpython/pull/107780#event-10035961026
markshannonhttps://github.com/markshannon
August 9, 2023 19:38https://github.com/python/cpython/pull/107780#commits-pushed-9077b17
https://github.com/markshannon
Address review commentshttps://github.com/python/cpython/pull/107780/commits/9077b17598633be15ebc8cff3858100975338c51
9077b17https://github.com/python/cpython/pull/107780/commits/9077b17598633be15ebc8cff3858100975338c51
https://github.com/markshannon
Clarify commentshttps://github.com/python/cpython/pull/107780/commits/7460a99ecdb4881b1771e5ab3a2e258d630700c8
7460a99https://github.com/python/cpython/pull/107780/commits/7460a99ecdb4881b1771e5ab3a2e258d630700c8
https://github.com/markshannon
Fix editinghttps://github.com/python/cpython/pull/107780/commits/6b4bafbf422e3ab34d947603b9370a489e0ae76c
6b4bafbhttps://github.com/python/cpython/pull/107780/commits/6b4bafbf422e3ab34d947603b9370a489e0ae76c
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Aug 9, 2023 https://github.com/python/cpython/pull/107780#pullrequestreview-1570752120
View reviewed changes https://github.com/python/cpython/pull/107780/files/de050f2c3aa38d7b4b1a922b020f8d45370cf34e
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
https://github.com/python/cpython/pull/107780#pullrequestreview-1570752120
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/107780
Python/instrumentation.chttps://github.com/python/cpython/pull/107780/files/de050f2c3aa38d7b4b1a922b020f8d45370cf34e#diff-adaefb7da847260ef7aff6e66007bc83f5b226c5389a23e1c9ea622c3b02c419
Please reload this pagehttps://github.com/python/cpython/pull/107780
Python/instrumentation.chttps://github.com/python/cpython/pull/107780/files/de050f2c3aa38d7b4b1a922b020f8d45370cf34e#diff-adaefb7da847260ef7aff6e66007bc83f5b226c5389a23e1c9ea622c3b02c419
Please reload this pagehttps://github.com/python/cpython/pull/107780
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 9, 2023https://github.com/python/cpython/pull/107780#event-10053092181
https://github.com/markshannon
markshannonhttps://github.com/markshannon
37d8b90https://github.com/python/cpython/commit/37d8b904f8b5b660f556597b21c0933b841d18de
Aug 10, 2023https://github.com/python/cpython/pull/107780#event-10058891739
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Aug 10, 2023https://github.com/python/cpython/pull/107780#issuecomment-1673135180
@markshannonhttps://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/107780
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 10, 2023https://github.com/python/cpython/pull/107780#event-10058892425
miss-islingtonhttps://github.com/miss-islington
Aug 10, 2023 https://github.com/python/cpython/pull/107780#ref-commit-7d8d876
https://github.com/markshannon
https://github.com/miss-islington
pythonGH-107674https://github.com/python/cpython/issues/107674
: Avoid allocating boxed ints forhttps://github.com/miss-islington/cpython/commit/7d8d876035abd2c2f582d1554a2d15872f16c921
sys.settracehttps://github.com/miss-islington/cpython/commit/7d8d876035abd2c2f582d1554a2d15872f16c921
line …https://github.com/miss-islington/cpython/commit/7d8d876035abd2c2f582d1554a2d15872f16c921
7d8d876https://github.com/miss-islington/cpython/commit/7d8d876035abd2c2f582d1554a2d15872f16c921
pythonGH-107780https://github.com/python/cpython/pull/107780
37d8b90https://github.com/miss-islington/cpython/commit/37d8b904f8b5b660f556597b21c0933b841d18de
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 10, 2023https://github.com/python/cpython/pull/107780#issuecomment-1673135461
GH-107841https://github.com/python/cpython/pull/107841
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/107780
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Aug 10, 2023https://github.com/python/cpython/pull/107780#event-10058894337
https://github.com/markshannon
markshannonhttps://github.com/markshannon
September 26, 2023 12:56https://github.com/python/cpython/pull/107780#event-10474866063
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Feb 4, 2024 https://github.com/python/cpython/pull/107780#ref-pullrequest-2116929216
gh-107674: Improve performance of sys.settrace #114986 https://github.com/python/cpython/pull/114986
facebook-github-bothttps://github.com/facebook-github-bot
Apr 1, 2025 https://github.com/python/cpython/pull/107780#ref-commit-e5afdd4
https://github.com/fried
https://github.com/facebook-github-bot
python 3.12 coverage regression workaroundhttps://github.com/facebook/fbthrift/commit/e5afdd4b8813cf993372306d8ad29eaea9672da6
e5afdd4https://github.com/facebook/fbthrift/commit/e5afdd4b8813cf993372306d8ad29eaea9672da6
python/cpython#107674https://github.com/python/cpython/issues/107674
python/cpython#127953https://github.com/python/cpython/issues/127953
python/cpython#107780https://github.com/python/cpython/pull/107780
facebook-github-bothttps://github.com/facebook-github-bot
Apr 1, 2025 https://github.com/python/cpython/pull/107780#ref-commit-f2b8759
https://github.com/fried
https://github.com/facebook-github-bot
python 3.12 coverage regression workaroundhttps://github.com/facebook/hhvm/commit/f2b87594b9e550a6b231d69ede5d7c3f46145b04
f2b8759https://github.com/facebook/hhvm/commit/f2b87594b9e550a6b231d69ede5d7c3f46145b04
python/cpython#107674https://github.com/python/cpython/issues/107674
python/cpython#127953https://github.com/python/cpython/issues/127953
python/cpython#107780https://github.com/python/cpython/pull/107780
Yhg1shttps://github.com/Yhg1s
Apr 6, 2025 https://github.com/python/cpython/pull/107780#ref-commit-55b2303
https://github.com/miss-islington
https://github.com/markshannon
[3.12]https://github.com/python/cpython/commit/55b230333fc86137271d9e253abb3e4b61c2978f
GH-107674https://github.com/python/cpython/issues/107674
: Avoid allocating boxed ints forhttps://github.com/python/cpython/commit/55b230333fc86137271d9e253abb3e4b61c2978f
sys.settracehttps://github.com/python/cpython/commit/55b230333fc86137271d9e253abb3e4b61c2978f
line…https://github.com/python/cpython/commit/55b230333fc86137271d9e253abb3e4b61c2978f
55b2303https://github.com/python/cpython/commit/55b230333fc86137271d9e253abb3e4b61c2978f
GH-107780https://github.com/python/cpython/pull/107780
#107841https://github.com/python/cpython/pull/107841
GH-107674https://github.com/python/cpython/issues/107674
GH-107780https://github.com/python/cpython/pull/107780
37d8b90https://github.com/python/cpython/commit/37d8b904f8b5b660f556597b21c0933b841d18de
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%2Fcpython%2Fpull%2F107780
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/python/cpython/pull/107780/files/de050f2c3aa38d7b4b1a922b020f8d45370cf34e
Please reload this pagehttps://github.com/python/cpython/pull/107780
https://github.com/markshannon
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/ericsnowcurrently
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.