René's URL Explorer Experiment


Title: PERF: Speed up add_patch by scottshambaugh · Pull Request #32026 · matplotlib/matplotlib · GitHub

Open Graph Title: PERF: Speed up add_patch by scottshambaugh · Pull Request #32026 · matplotlib/matplotlib

X Title: PERF: Speed up add_patch by scottshambaugh · Pull Request #32026 · matplotlib/matplotlib

Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.

Open Graph Description: PR summary add_patch is currently very slow since it does bezier checks on all lines, but we can fast-path this for the common straight line case. In the below test script, add_patch dropped from 1...

X Description: PR summary add_patch is currently very slow since it does bezier checks on all lines, but we can fast-path this for the common straight line case. In the below test script, add_patch dropped from 1...

Opengraph URL: https://github.com/matplotlib/matplotlib/pull/32026

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:a311094b-3938-f739-6caa-860844309dbc
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id963E:3BB025:C5B8EA:108B01A:6A556EC8
html-safe-nonce97982ebb1cd43c0a943a136b452ddaae2ae99bf90e37dcf1af25030e34a3c02f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjNFOjNCQjAyNTpDNUI4RUE6MTA4QjAxQTo2QTU1NkVDOCIsInZpc2l0b3JfaWQiOiIyOTYzMzM1MDYwMTQzODI4NjgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc20d4e5a419cc177d9ec3e31f705436c2a8954a08e68d4683e4066e7010f7bb1
hovercard-subject-tagpull_request:4025349406
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/matplotlib/matplotlib/pull/32026/checks
twitter:imagehttps://opengraph.githubassets.com/598074b7e99e2c8475a3e7bdd656abcc0fb092dac918b14ed0facb1a9de05acc/matplotlib/matplotlib/pull/32026
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/598074b7e99e2c8475a3e7bdd656abcc0fb092dac918b14ed0facb1a9de05acc/matplotlib/matplotlib/pull/32026
og:image:altPR summary add_patch is currently very slow since it does bezier checks on all lines, but we can fast-path this for the common straight line case. In the below test script, add_patch dropped from 1...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamescottshambaugh
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
turbo-cache-controlno-cache
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
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
releasea90bd2a4a25feb75544d06b89350dcf95d9c46e0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/pull/32026/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F32026%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fmatplotlib%2Fmatplotlib%2Fpull%2F32026%2Fchecks
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%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/pull/32026/checks
Reloadhttps://github.com/matplotlib/matplotlib/pull/32026/checks
Reloadhttps://github.com/matplotlib/matplotlib/pull/32026/checks
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/32026/checks
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/32026/checks
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
scottshambaughhttps://github.com/scottshambaugh
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
scottshambaugh:add_patch_speeduphttps://github.com/scottshambaugh/matplotlib/tree/add_patch_speedup
Conversationhttps://github.com/matplotlib/matplotlib/pull/32026
Commits4 (4)https://github.com/matplotlib/matplotlib/pull/32026/commits
Checkshttps://github.com/matplotlib/matplotlib/pull/32026/checks
Files changedhttps://github.com/matplotlib/matplotlib/pull/32026/files
PERF: Speed up add_patchhttps://github.com/matplotlib/matplotlib/pull/32026/checks#top
scottshambaughhttps://github.com/scottshambaugh
matplotlib:mainhttps://github.com/matplotlib/matplotlib/tree/main
scottshambaugh:add_patch_speeduphttps://github.com/scottshambaugh/matplotlib/tree/add_patch_speedup
Please reload this pagehttps://github.com/matplotlib/matplotlib/pull/32026/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fpull%2F32026%2Fchecks
Pull Request Labeler on: pull_request_target https://github.com/matplotlib/matplotlib/actions/runs/29104703922
labeler https://github.com/matplotlib/matplotlib/actions/runs/29104703922/job/86402148537?pr=32026
examples https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86404764342
sphinx https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86404761544
Maintenance on: pull_request_target https://github.com/matplotlib/matplotlib/actions/runs/29104703971
main https://github.com/matplotlib/matplotlib/actions/runs/29104703971/job/86402148596?pr=32026
Linting on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704857
precommit https://github.com/matplotlib/matplotlib/actions/runs/29104704857/job/86402154143?pr=32026
ruff https://github.com/matplotlib/matplotlib/actions/runs/29104704857/job/86402154153?pr=32026
mypy https://github.com/matplotlib/matplotlib/actions/runs/29104704857/job/86402154088?pr=32026
clang-tidy (macOS / Objective-C) https://github.com/matplotlib/matplotlib/actions/runs/29104704857/job/86402154138?pr=32026
eslint https://github.com/matplotlib/matplotlib/actions/runs/29104704857/job/86402154220?pr=32026
CodeQL on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704870
Analyze (c-cpp) https://github.com/matplotlib/matplotlib/actions/runs/29104704870/job/86402151463?pr=32026
Analyze (javascript) https://github.com/matplotlib/matplotlib/actions/runs/29104704870/job/86402151461?pr=32026
Analyze (python) https://github.com/matplotlib/matplotlib/actions/runs/29104704870/job/86402151450?pr=32026
Mypy Stubtest on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704895
mypy-stubtest https://github.com/matplotlib/matplotlib/actions/runs/29104704895/job/86402151580?pr=32026
Do Not Merge on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704901
Prevent Merging https://github.com/matplotlib/matplotlib/actions/runs/29104704901/job/86402151781?pr=32026
Build wasm wheels on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704913
Build wasm https://github.com/matplotlib/matplotlib/actions/runs/29104704913/job/86402152854?pr=32026
zizmor on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104704939
zizmor https://github.com/matplotlib/matplotlib/actions/runs/29104704939/job/86402151583?pr=32026
Tests on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104705019
Python 3.12 on ubuntu-22.04 (Minimum Versions) https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152591?pr=32026
Python 3.12 on ubuntu-22.04 https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152645?pr=32026
Python 3.13 on ubuntu-22.04 (Extra TeX packages) https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152568?pr=32026
Python 3.14t on ubuntu-22.04 Free-threaded https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152572?pr=32026
Python 3.14 on ubuntu-24.04 https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152574?pr=32026
Python 3.12 on ubuntu-24.04-arm https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152615?pr=32026
Python 3.12 on macos-14 https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152601?pr=32026
Python 3.13 on macos-15 https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152552?pr=32026
Python 3.14 on macos-15 https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86402152583?pr=32026
Create issue on failure https://github.com/matplotlib/matplotlib/actions/runs/29104705019/job/86406510207?pr=32026
Build CI wheels on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104705031
Build sdist https://github.com/matplotlib/matplotlib/actions/runs/29104705031/job/86402153033?pr=32026
Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }} https://github.com/matplotlib/matplotlib/actions/runs/29104705031/job/86402171938?pr=32026
PR cleanliness on: pull_request https://github.com/matplotlib/matplotlib/actions/runs/29104705047
pr_clean https://github.com/matplotlib/matplotlib/actions/runs/29104705047/job/86402152133?pr=32026
matplotlib.matplotlib https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86408880695
matplotlib.matplotlib (Check Skip) https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86402382882
matplotlib.matplotlib (Main Pytest Windows_py312) https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86408182774
matplotlib.matplotlib (Main Pytest Windows_py313) https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86408875852
CodeQL https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86402339763
zizmor https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86402197022
codecov/patch https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86423632938
codecov/project/library https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86423630230
codecov/project/tests https://github.com/matplotlib/matplotlib/pull/32026/checks?check_run_id=86423627660
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.