René's URL Explorer Experiment


Title: Use `wmemchr` in stringlib if `sizeof(STRINGLIB_CHAR) == sizeof(wchar_t)` · Issue #93033 · python/cpython · GitHub

Open Graph Title: Use `wmemchr` in stringlib if `sizeof(STRINGLIB_CHAR) == sizeof(wchar_t)` · Issue #93033 · python/cpython

X Title: Use `wmemchr` in stringlib if `sizeof(STRINGLIB_CHAR) == sizeof(wchar_t)` · Issue #93033 · python/cpython

Description: Feature or enhancement (A clear and concise description of your proposal.) memchr is currently used if sizeof(STRINGLIB_CHAR) == sizeof(char) because it faster than the standard C loops alternatives. wmemchr has often roughly the same pe...

Open Graph Description: Feature or enhancement (A clear and concise description of your proposal.) memchr is currently used if sizeof(STRINGLIB_CHAR) == sizeof(char) because it faster than the standard C loops alternative...

X Description: Feature or enhancement (A clear and concise description of your proposal.) memchr is currently used if sizeof(STRINGLIB_CHAR) == sizeof(char) because it faster than the standard C loops alternative...

Opengraph URL: https://github.com/python/cpython/issues/93033

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `wmemchr` in stringlib if `sizeof(STRINGLIB_CHAR) == sizeof(wchar_t)`","articleBody":"**Feature or enhancement**\r\n\r\n(A clear and concise description of your proposal.)\r\n\r\n`memchr` is currently used if `sizeof(STRINGLIB_CHAR) == sizeof(char)` because it faster\r\nthan the standard C loops alternatives.\r\n\r\n`wmemchr` has often roughly the same performance as `memchr` and can be used\r\nin the same way as `memchr` to speedup some of the string functions `STRINGLIB(find_char)` \r\nand `STRINGLIB(replace_1char_inplace)` are the two easiest candidates.\r\n\r\n**Pitch**\r\n\r\n(Explain why this feature or enhancement should be implemented and how it would be used.\r\n Add examples, if applicable.)\r\n\r\nIt would, in some instances, make `wide_str.find(wide_str_of_len_one)` faster.\r\n\r\n**Previous discussion**\r\n\r\nThe idea was discussed a bit in #69009 but wasn't the main topic of the issue\r\nor put into any patches.\r\n\u003c!--\r\n  New features to Python should first be discussed elsewhere before creating issues on GitHub,\r\n  for example in the \"ideas\" category (https://discuss.python.org/c/ideas/6) of discuss.python.org,\r\n  or the python-ideas mailing list (https://mail.python.org/mailman3/lists/python-ideas.python.org/).\r\n  Use this space to post links to the places where you have already discussed this feature proposal:\r\n-->\r\n\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/goldsteinn","@type":"Person","name":"goldsteinn"},"datePublished":"2022-05-20T23:22:44Z","url":"https://github.com/python/cpython/issues/93033"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2e20a4c4-a8c2-280f-b223-92eac0d379d8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD52:39FDE1:7AACAE:99E3B1:6B02104E
html-safe-nonce5521e86fd5440fe4a92b20e9d799d8920f68ae1e2642dfff8bc895d1331f08e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDUyOjM5RkRFMTo3QUFDQUU6OTlFM0IxOjZCMDIxMDRFIiwidmlzaXRvcl9pZCI6IjM3MDIyMzQ4OTg2ODIyMjA2MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1395eeb440b51aa673ac3036c7f80f8ce4513ff9d9425c9c7c754bb6f74d7c95
hovercard-subject-tagissue:1243783561
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93033/issue_layout
twitter:imagehttps://opengraph.githubassets.com/32e69691c949a85281fe1a0833955c1e1a59527197121445febbda7d67ac1191/python/cpython/issues/93033
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/32e69691c949a85281fe1a0833955c1e1a59527197121445febbda7d67ac1191/python/cpython/issues/93033
og:image:altFeature or enhancement (A clear and concise description of your proposal.) memchr is currently used if sizeof(STRINGLIB_CHAR) == sizeof(char) because it faster than the standard C loops alternative...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegoldsteinn
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/93033#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F93033
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%2Fcpython%2Fissues%2F93033
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/93033
Reloadhttps://github.com/python/cpython/issues/93033
Reloadhttps://github.com/python/cpython/issues/93033
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/93033
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/93033
Use wmemchr in stringlib if sizeof(STRINGLIB_CHAR) == sizeof(wchar_t)https://github.com/python/cpython/issues/93033#top
https://github.com/methane
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/goldsteinn
goldsteinnhttps://github.com/goldsteinn
on May 20, 2022https://github.com/python/cpython/issues/93033#issue-1243783561
#69009https://github.com/python/cpython/issues/69009
goldsteinnhttps://github.com/goldsteinn
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on May 20, 2022https://github.com/python/cpython/issues/93033#event-6654038095
corona10https://github.com/corona10
methanehttps://github.com/methane
on May 21, 2022https://github.com/python/cpython/issues/93033#event-6654940245
https://github.com/corona10
corona10https://github.com/corona10
on May 21, 2022https://github.com/python/cpython/issues/93033#issuecomment-1133633935
@methanehttps://github.com/methane
https://github.com/goldsteinn
goldsteinnhttps://github.com/goldsteinn
on May 21, 2022https://github.com/python/cpython/issues/93033#issuecomment-1133651895
@corona10https://github.com/corona10
93034https://github.com/python/cpython/pull/93034
goldsteinnhttps://github.com/goldsteinn
on May 21, 2022https://github.com/python/cpython/issues/93033#event-6655344796
pythongh-93033: Use wmemchr in find_char and replace_1char_inplacehttps://github.com/goldsteinn/cpython/commit/80bfc80054f94049b4d8954bb999d5554384f2d8
pythongh-93033https://github.com/python/cpython/issues/93033
80bfc80https://github.com/goldsteinn/cpython/commit/80bfc80054f94049b4d8954bb999d5554384f2d8
serhiy-storchakahttps://github.com/serhiy-storchaka
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
on May 22, 2022https://github.com/python/cpython/issues/93033#event-6656470824
methanehttps://github.com/methane
on May 24, 2022https://github.com/python/cpython/issues/93033#event-6665137138
gh-93033: Use wmemchr in stringlib (GH-93034)https://github.com/python/cpython/commit/7108bdf27c7a460cf83c4a01dea54ae4591d8aea
gh-93033https://github.com/python/cpython/issues/93033
GH-93034https://github.com/python/cpython/pull/93034
7108bdfhttps://github.com/python/cpython/commit/7108bdf27c7a460cf83c4a01dea54ae4591d8aea
corona10https://github.com/corona10
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 24, 2022https://github.com/python/cpython/issues/93033#event-6665394634
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/93033
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/93033
methanehttps://github.com/methane
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
topic-unicodehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-unicode%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
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.