René's URL Explorer Experiment


Title: cppcheckdata.py: compile `match()` patterns once by pfultz2 · Pull Request #8999 · cppcheck-opensource/cppcheck · GitHub

Open Graph Title: cppcheckdata.py: compile `match()` patterns once by pfultz2 · Pull Request #8999 · cppcheck-opensource/cppcheck

X Title: cppcheckdata.py: compile `match()` patterns once by pfultz2 · Pull Request #8999 · cppcheck-opensource/cppcheck

Description: static analysis of C/C++ code. Contribute to cppcheck-opensource/cppcheck development by creating an account on GitHub.

Open Graph Description: cppcheckdata.match() re-parsed its pattern string on every call: it split the pattern, split off the @ bindings, and match_atom() ran through a chain of in/startswith checks for each word before do...

X Description: cppcheckdata.match() re-parsed its pattern string on every call: it split the pattern, split off the @ bindings, and match_atom() ran through a chain of in/startswith checks for each word before do...

Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/8999

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:bbd3306b-01ed-861d-04ef-95b77528e945
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id85DA:3F71AA:1C3CF4:287893:6AFC4AE3
html-safe-nonce297dd5c7ea539c454ce4eb26fa311edc5dc1ede9f410c9956e084c3e823be039
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NURBOjNGNzFBQToxQzNDRjQ6Mjg3ODkzOjZBRkM0QUUzIiwidmlzaXRvcl9pZCI6IjY4MTA4MjI2NjcyMDU4ODg3MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7d3f519ccedface4c44762216cb3ea53b736f86984faaa3ed1157006a0e8ae64
hovercard-subject-tagpull_request:5180443792
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/cppcheck-opensource/cppcheck/8999/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/115daa0635a69ded7b25a05a5cba321a6167daddea6a5522950e04b85de794f2/cppcheck-opensource/cppcheck/pull/8999
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/115daa0635a69ded7b25a05a5cba321a6167daddea6a5522950e04b85de794f2/cppcheck-opensource/cppcheck/pull/8999
og:image:altcppcheckdata.match() re-parsed its pattern string on every call: it split the pattern, split off the @ bindings, and match_atom() ran through a chain of in/startswith checks for each word before do...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepfultz2
hostnamegithub.com
expected-hostnamegithub.com
None20dfdada12bc00bbf8065dc10dfe3ff3711b85db5cc117f83296f8074e861960
turbo-cache-controlno-cache
go-importgithub.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git
octolytics-dimension-user_id278097703
octolytics-dimension-user_logincppcheck-opensource
octolytics-dimension-repository_id143131
octolytics-dimension-repository_nwocppcheck-opensource/cppcheck
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id143131
octolytics-dimension-repository_network_root_nwocppcheck-opensource/cppcheck
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
release041909865f220ab51714e7efdc276dd349a99ade
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/cppcheck-opensource/cppcheck/pull/8999#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F8999
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%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F8999
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=cppcheck-opensource%2Fcppcheck
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/8999
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/8999
Reloadhttps://github.com/cppcheck-opensource/cppcheck/pull/8999
cppcheck-opensourcehttps://github.com/cppcheck-opensource
cppcheckhttps://github.com/cppcheck-opensource/cppcheck
Codehttps://github.com/cppcheck-opensource/cppcheck
Pull requests222 (222)https://github.com/cppcheck-opensource/cppcheck/pulls
Actionshttps://github.com/cppcheck-opensource/cppcheck/actions
Security and qualityhttps://github.com/cppcheck-opensource/cppcheck/security
Insightshttps://github.com/cppcheck-opensource/cppcheck/pulse
https://github.com/cppcheck-opensource/cppcheck
pfultz2https://github.com/pfultz2
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
pfultz2:addon-match-perfhttps://github.com/pfultz2/cppcheck/tree/addon-match-perf
Conversationhttps://github.com/cppcheck-opensource/cppcheck/pull/8999
Commits6 (6)https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits
Checkshttps://github.com/cppcheck-opensource/cppcheck/pull/8999/checks
Files changedhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files
cppcheckdata.py: compile match() patterns oncehttps://github.com/cppcheck-opensource/cppcheck/pull/8999#top
pfultz2https://github.com/pfultz2
cppcheck-opensource:mainhttps://github.com/cppcheck-opensource/cppcheck/tree/main
pfultz2:addon-match-perfhttps://github.com/pfultz2/cppcheck/tree/addon-match-perf
https://github.com/pfultz2
pfultz2https://github.com/pfultz2
Nov 5, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#issue-6233730015
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
pfultz2https://github.com/pfultz2
November 5, 2026 14:24https://github.com/cppcheck-opensource/cppcheck/pull/8999#commits-pushed-e94d0cd
https://github.com/pfultz2
Improve Match perfhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/e94d0cd9f229144cf7bd281142da2c2c1ca7137b
e94d0cdhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/e94d0cd9f229144cf7bd281142da2c2c1ca7137b
https://github.com/pfultz2
Add a CompiledPattern classhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/baf9f3074583f5b72d8ddf3fcbcf578b76092bff
baf9f30https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/baf9f3074583f5b72d8ddf3fcbcf578b76092bff
https://github.com/pfultz2
Remove atom cachehttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/b18f1498d96af92ecb1ff710c648ab815acf982d
b18f149https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/b18f1498d96af92ecb1ff710c648ab815acf982d
https://github.com/pfultz2
Fix the quirkhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb
ec8567fhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb
https://github.com/dmcppcheck
dmcppcheckhttps://github.com/dmcppcheck
Nov 6, 2026 https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5795193408
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/8999/files/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb
dmcppcheckhttps://github.com/dmcppcheck
https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5795193408
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
ec8567fhttps://github.com/cppcheck-opensource/cppcheck/commit/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
addons/cppcheckdata.pyhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb#diff-a26c2945ff684061f9f5df6ff53fe187e89975c8f6b3c69419c596d6857d3583
dmcppcheckhttps://github.com/dmcppcheck
Nov 6, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4488585144
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
pfultz2https://github.com/pfultz2
Nov 6, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4497854203
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
addons/cppcheckdata.pyhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files/ec8567f5f36558ca780ce89ff13b9e5dc957b1eb#diff-a26c2945ff684061f9f5df6ff53fe187e89975c8f6b3c69419c596d6857d3583
dmcppcheckhttps://github.com/dmcppcheck
Nov 6, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4488585149
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
pfultz2https://github.com/pfultz2
Nov 6, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4497855058
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
https://github.com/pfultz2
Fix the quirk for git diff|=https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/c59f7f16f958961fc117c6b9c221eb7aafd383a5
c59f7f1https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/c59f7f16f958961fc117c6b9c221eb7aafd383a5
https://github.com/dmcppcheck
dmcppcheckhttps://github.com/dmcppcheck
Nov 7, 2026 https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5808663753
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/8999/files/c59f7f16f958961fc117c6b9c221eb7aafd383a5
dmcppcheckhttps://github.com/dmcppcheck
https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5808663753
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
c59f7f1https://github.com/cppcheck-opensource/cppcheck/commit/c59f7f16f958961fc117c6b9c221eb7aafd383a5
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
addons/cppcheckdata.pyhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files/c59f7f16f958961fc117c6b9c221eb7aafd383a5#diff-a26c2945ff684061f9f5df6ff53fe187e89975c8f6b3c69419c596d6857d3583
dmcppcheckhttps://github.com/dmcppcheck
Nov 7, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4498911365
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
https://github.com/pfultz2
Restore the guardhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/955b562d351320e09f89534b636f674eb4034694
955b562https://github.com/cppcheck-opensource/cppcheck/pull/8999/commits/955b562d351320e09f89534b636f674eb4034694
https://github.com/dmcppcheck
dmcppcheckhttps://github.com/dmcppcheck
Nov 8, 2026 https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5816700921
View reviewed changes https://github.com/cppcheck-opensource/cppcheck/pull/8999/files/955b562d351320e09f89534b636f674eb4034694
dmcppcheckhttps://github.com/dmcppcheck
https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5816700921
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Shared mutable failed MatchResult is returned from every failed call with the same patternhttps://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5795193408
The |= fix only works when |= is the whole word, not in !!|=, **|= or alternationshttps://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5795193408
match(tok, None) raises AttributeErrorhttps://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5808663753
Description doesn't list the changed meaning of !!||, !!|, **|| and **|https://github.com/cppcheck-opensource/cppcheck/pull/8999#pullrequestreview-5808663753
@pfultz2https://github.com/pfultz2
#4https://github.com/cppcheck-opensource/cppcheck/pull/4
955b562https://github.com/cppcheck-opensource/cppcheck/commit/955b562d351320e09f89534b636f674eb4034694
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
addons/cppcheckdata.pyhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files/955b562d351320e09f89534b636f674eb4034694#diff-a26c2945ff684061f9f5df6ff53fe187e89975c8f6b3c69419c596d6857d3583
dmcppcheckhttps://github.com/dmcppcheck
Nov 8, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4505107073
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
addons/cppcheckdata.pyhttps://github.com/cppcheck-opensource/cppcheck/pull/8999/files/955b562d351320e09f89534b636f674eb4034694#diff-a26c2945ff684061f9f5df6ff53fe187e89975c8f6b3c69419c596d6857d3583
dmcppcheckhttps://github.com/dmcppcheck
Nov 8, 2026https://github.com/cppcheck-opensource/cppcheck/pull/8999#discussion_r4505107079
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
https://github.co/hiddenchars
https://github.com/cppcheck-opensource/cppcheck/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%2Fcppcheck-opensource%2Fcppcheck%2Fpull%2F8999
https://github.com/dmcppcheck
dmcppcheck https://github.com/dmcppcheck
https://github.com/cppcheck-opensource/cppcheck/pull/8999/files/955b562d351320e09f89534b636f674eb4034694
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
Please reload this pagehttps://github.com/cppcheck-opensource/cppcheck/pull/8999
https://github.com/pfultz2
https://github.com/dmcppcheck
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.