René's URL Explorer Experiment


Title: str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions) · Issue #65317 · python/cpython · GitHub

Open Graph Title: str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions) · Issue #65317 · python/cpython

X Title: str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions) · Issue #65317 · python/cpython

Description: BPO 21118 Nosy @pitrou, @vstinner, @ezio-melotti, @serhiy-storchaka, @MojoVampire Files translate_timing.py: File to time various ways of using str.translate and its "competing" functionstranslate_writer.patchtranslate_script.pytranslate...

Open Graph Description: BPO 21118 Nosy @pitrou, @vstinner, @ezio-melotti, @serhiy-storchaka, @MojoVampire Files translate_timing.py: File to time various ways of using str.translate and its "competing" functionstranslate_...

X Description: BPO 21118 Nosy @pitrou, @vstinner, @ezio-melotti, @serhiy-storchaka, @MojoVampire Files translate_timing.py: File to time various ways of using str.translate and its "competing" functions...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)","articleBody":"BPO | [21118](https://bugs.python.org/issue21118)\n--- | :---\nNosy | @pitrou, @vstinner, @ezio-melotti, @serhiy-storchaka, @MojoVampire\nFiles | \u003cli\u003e[translate_timing.py](https://bugs.python.org/file34688/translate_timing.py \"Uploaded as text/plain at 2014-03-31.23:09:05 by @MojoVampire\"): File to time various ways of using str.translate and its \"competing\" functions\u003c/li\u003e\u003cli\u003e[translate_writer.patch](https://bugs.python.org/file34691/translate_writer.patch \"Uploaded as text/plain at 2014-04-01.08:23:35 by @vstinner\")\u003c/li\u003e\u003cli\u003e[translate_script.py](https://bugs.python.org/file34727/translate_script.py \"Uploaded as text/plain at 2014-04-04.17:29:33 by @vstinner\")\u003c/li\u003e\u003cli\u003e[translate_writer_bench.txt](https://bugs.python.org/file34728/translate_writer_bench.txt \"Uploaded as text/plain at 2014-04-04.17:30:05 by @vstinner\")\u003c/li\u003e\u003cli\u003e[fast_translate.patch](https://bugs.python.org/file34731/fast_translate.patch \"Uploaded as text/plain at 2014-04-04.23:38:28 by @vstinner\")\u003c/li\u003e\u003cli\u003e[translate_script_ascii.py](https://bugs.python.org/file34732/translate_script_ascii.py \"Uploaded as text/plain at 2014-04-04.23:43:34 by @vstinner\")\u003c/li\u003e\u003cli\u003e[translate_cached.patch](https://bugs.python.org/file34734/translate_cached.patch \"Uploaded as text/plain at 2014-04-05.11:47:42 by @serhiy-storchaka\")\u003c/li\u003e\u003cli\u003e[translate_cached_2.patch](https://bugs.python.org/file34736/translate_cached_2.patch \"Uploaded as text/plain at 2014-04-05.12:51:09 by @serhiy-storchaka\")\u003c/li\u003e\u003cli\u003e[bench_translate.py](https://bugs.python.org/file34744/bench_translate.py \"Uploaded as text/plain at 2014-04-07.08:34:40 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2014-04-05.13:03:50.934\u003e\ncreated_at = \u003cDate 2014-03-31.23:09:06.297\u003e\nlabels = ['expert-unicode', 'performance']\ntitle = 'str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)'\nupdated_at = \u003cDate 2014-04-08.07:14:31.298\u003e\nuser = 'https://github.com/MojoVampire'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2014-04-08.07:14:31.298\u003e\nactor = 'python-dev'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2014-04-05.13:03:50.934\u003e\ncloser = 'vstinner'\ncomponents = ['Unicode']\ncreation = \u003cDate 2014-03-31.23:09:06.297\u003e\ncreator = 'josh.r'\ndependencies = []\nfiles = ['34688', '34691', '34727', '34728', '34731', '34732', '34734', '34736', '34744']\nhgrepos = []\nissue_num = 21118\nkeywords = ['patch']\nmessage_count = 31.0\nmessages = ['215283', '215301', '215339', '215387', '215473', '215538', '215539', '215540', '215541', '215551', '215552', '215553', '215576', '215577', '215586', '215587', '215594', '215598', '215599', '215600', '215602', '215606', '215610', '215612', '215673', '215676', '215678', '215680', '215685', '215686', '215742']\nnosy_count = 6.0\nnosy_names = ['pitrou', 'vstinner', 'ezio.melotti', 'python-dev', 'serhiy.storchaka', 'josh.r']\npr_nums = []\npriority = 'normal'\nresolution = 'fixed'\nstage = 'patch review'\nstatus = 'closed'\nsuperseder = None\ntype = 'performance'\nurl = 'https://bugs.python.org/issue21118'\nversions = ['Python 3.4', 'Python 3.5']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/MojoVampire","@type":"Person","name":"MojoVampire"},"datePublished":"2014-03-31T23:09:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":31},"url":"https://github.com/65317/cpython/issues/65317"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e7d7c118-6c60-5a5c-8ea7-dc5f355090ee
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEB3A:B5AA6:69B1258:93DB2DF:6A5041C1
html-safe-nonce36d2b3da95ff8848c1ea48fe1364d073f986690cab4f99695e8dfc72bad8dab5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjNBOkI1QUE2OjY5QjEyNTg6OTNEQjJERjo2QTUwNDFDMSIsInZpc2l0b3JfaWQiOiI3MjQwNzExNzcyMTIxODc0ODgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac77503a9626182d4d9e998c9d390f53649698ccbf8173b986297a9b9041dc1a9b
hovercard-subject-tagissue:1198918506
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/65317/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f530ab0b6a38854d837f72d8928761e8811d131aa8c54af6740767181dbc18b0/python/cpython/issues/65317
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f530ab0b6a38854d837f72d8928761e8811d131aa8c54af6740767181dbc18b0/python/cpython/issues/65317
og:image:altBPO 21118 Nosy @pitrou, @vstinner, @ezio-melotti, @serhiy-storchaka, @MojoVampire Files translate_timing.py: File to time various ways of using str.translate and its "competing" functionstranslate_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMojoVampire
hostnamegithub.com
expected-hostnamegithub.com
Noned6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb
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
released90666eaf032b7eb8975a378efe38e37f4ebb96c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/65317#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F65317
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%2Fpython%2Fcpython%2Fissues%2F65317
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/65317
Reloadhttps://github.com/python/cpython/issues/65317
Reloadhttps://github.com/python/cpython/issues/65317
Please reload this pagehttps://github.com/python/cpython/issues/65317
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/65317
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)https://github.com/python/cpython/issues/65317#top
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
on Mar 31, 2014https://github.com/python/cpython/issues/65317#issue-1198918506
21118https://bugs.python.org/issue21118
@pitrouhttps://github.com/pitrou
@vstinnerhttps://github.com/vstinner
@ezio-melottihttps://github.com/ezio-melotti
@serhiy-storchakahttps://github.com/serhiy-storchaka
@MojoVampirehttps://github.com/MojoVampire
translate_timing.pyhttps://bugs.python.org/file34688/translate_timing.py
translate_writer.patchhttps://bugs.python.org/file34691/translate_writer.patch
translate_script.pyhttps://bugs.python.org/file34727/translate_script.py
translate_writer_bench.txthttps://bugs.python.org/file34728/translate_writer_bench.txt
fast_translate.patchhttps://bugs.python.org/file34731/fast_translate.patch
translate_script_ascii.pyhttps://bugs.python.org/file34732/translate_script_ascii.py
translate_cached.patchhttps://bugs.python.org/file34734/translate_cached.patch
translate_cached_2.patchhttps://bugs.python.org/file34736/translate_cached_2.patch
bench_translate.pyhttps://bugs.python.org/file34744/bench_translate.py
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
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.