| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:1f02e657-e73f-f987-adfb-ad6fce799ed0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BB7C:E1118:64BF44:84EBF6:6970146E |
| html-safe-nonce | aa9ad6c7259850fdc65d61fe91dc8e25a02c955098da8b0687d90ea7b551c9cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjdDOkUxMTE4OjY0QkY0NDo4NEVCRjY6Njk3MDE0NkUiLCJ2aXNpdG9yX2lkIjoiMzIxMzU2MjYwNzg2Nzc5NDU0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e9afe81e387bed7598da3bf1cd58b133b21e2bf2ea3563da0ee11c959753cb9d |
| hovercard-subject-tag | pull_request:878127180 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/31834/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/c1e58fc9f42bf7ea570a5dd1ec16e780f57278b82d99a19860253a7d7715546a/python/cpython/pull/31834 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c1e58fc9f42bf7ea570a5dd1ec16e780f57278b82d99a19860253a7d7715546a/python/cpython/pull/31834 |
| og:image:alt | Speeds up bytearray creation from list and tuples.
Benchmark:
import pyperf
runner = pyperf.Runner()
runner.timeit(name="bench bytearray",
stmt="bytearray([42]*10000)&... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kumaraditya303 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/31834#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31834 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F31834 |
|
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 |
| Reload | https://github.com/python/cpython/pull/31834 |
| Reload | https://github.com/python/cpython/pull/31834 |
| Reload | https://github.com/python/cpython/pull/31834 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.2k
| 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 page | https://github.com/python/cpython/pull/31834 |
|
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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| Jump to bottom | https://github.com/python/cpython/pull/31834#issue-comment-box |
| asvetlov | https://github.com/asvetlov |
| python:main | https://github.com/python/cpython/tree/main |
| kumaraditya303:bytearray | https://github.com/kumaraditya303/cpython/tree/bytearray |
|
bpo-46993: Speed up bytearray creation from list and tuple
| https://github.com/python/cpython/pull/31834#top |
| asvetlov | https://github.com/asvetlov |
| python:main | https://github.com/python/cpython/tree/main |
| kumaraditya303:bytearray | https://github.com/kumaraditya303/cpython/tree/bytearray |
|
Conversation
7
| https://github.com/python/cpython/pull/31834 |
|
Commits
6
| https://github.com/python/cpython/pull/31834/commits |
|
Checks
0
| https://github.com/python/cpython/pull/31834/checks |
|
Files changed
| https://github.com/python/cpython/pull/31834/files |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
|
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| Mar 12, 2022 | https://github.com/python/cpython/pull/31834#issue-1167231657 |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| https://bugs.python.org/issue46993 | https://bugs.python.org/issue46993 |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
|
| https://github.com/kumaraditya303 |
| fast bytearray for list and tuple | https://github.com/python/cpython/pull/31834/commits/7a54d01ce9bd4d55306d66ba1d46c926b20d5a10 |
| 7a54d01 | https://github.com/python/cpython/pull/31834/commits/7a54d01ce9bd4d55306d66ba1d46c926b20d5a10 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Mar 12, 2022 | https://github.com/python/cpython/pull/31834#event-6229448706 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Mar 12, 2022 | https://github.com/python/cpython/pull/31834#event-6229448709 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| Mar 12, 2022 | https://github.com/python/cpython/pull/31834#event-6229481928 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 12, 2022 09:41 | https://github.com/python/cpython/pull/31834#event-6229482086 |
|
| https://github.com/apps/blurb-it |
| 📜🤖 Added by blurb_it. | https://github.com/python/cpython/pull/31834/commits/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
| ce8d0cf | https://github.com/python/cpython/pull/31834/commits/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
| https://github.com/peendebak |
| peendebak | https://github.com/peendebak |
|
Mar 12, 2022
| https://github.com/python/cpython/pull/31834#pullrequestreview-908050932 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
| Objects/bytearrayobject.c | https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
|
Mar 12, 2022
| https://github.com/python/cpython/pull/31834#pullrequestreview-908056488 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
| Objects/bytearrayobject.c | https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb#diff-6878f29bbfb711dc7cd2a89b2b2941b1f900b6367d30181a2ff45460b591b04c |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 13, 2022 06:13 | https://github.com/python/cpython/pull/31834#commits-pushed-391840b |
|
| https://github.com/kumaraditya303 |
| code review | https://github.com/python/cpython/pull/31834/commits/391840bf822b347ba4cce2bb3b9f1f87fb74acd2 |
| 391840b | https://github.com/python/cpython/pull/31834/commits/391840bf822b347ba4cce2bb3b9f1f87fb74acd2 |
|
| https://github.com/kumaraditya303 |
| Merge branch 'bytearray' of | https://github.com/python/cpython/pull/31834/commits/b8a08ddaa35e13ee6df20cba5ed658c71a7809e7 |
| https://github.com/kumaraditya303/cpython | https://github.com/kumaraditya303/cpython |
| … | https://github.com/python/cpython/pull/31834/commits/b8a08ddaa35e13ee6df20cba5ed658c71a7809e7 |
| b8a08dd | https://github.com/python/cpython/pull/31834/commits/b8a08ddaa35e13ee6df20cba5ed658c71a7809e7 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| gvanrossum | https://github.com/gvanrossum |
| March 13, 2022 06:27 | https://github.com/python/cpython/pull/31834#event-6230703268 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 13, 2022 06:30 | https://github.com/python/cpython/pull/31834#event-6230705228 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 13, 2022 06:58 | https://github.com/python/cpython/pull/31834#commits-pushed-c937642 |
|
| https://github.com/kumaraditya303 |
| resize to 0 with slowpath | https://github.com/python/cpython/pull/31834/commits/c937642f127c939a36e5db417bd2f73eef0f61fc |
| c937642 | https://github.com/python/cpython/pull/31834/commits/c937642f127c939a36e5db417bd2f73eef0f61fc |
|
| https://github.com/kumaraditya303 |
| add a comment | https://github.com/python/cpython/pull/31834/commits/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
| 18e41d5 | https://github.com/python/cpython/pull/31834/commits/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 13, 2022 07:28 | https://github.com/python/cpython/pull/31834#event-6230755263 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
|
Mar 13, 2022
| https://github.com/python/cpython/pull/31834#pullrequestreview-908168469 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31834/files/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
| gvanrossum | https://github.com/gvanrossum |
| https://github.com/python/cpython/pull/31834#pullrequestreview-908168469 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31834#event-6231420587 |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
|
Mar 15, 2022
| https://github.com/python/cpython/pull/31834#pullrequestreview-910202145 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31834/files/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| 6dfe09f | https://github.com/python/cpython/commit/6dfe09fc5fd5a3ddc6009d5656e635eae30c5240 |
| Mar 15, 2022 | https://github.com/python/cpython/pull/31834#event-6243221306 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Mar 15, 2022 | https://github.com/python/cpython/pull/31834#event-6243221657 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| March 15, 2022 13:28 | https://github.com/python/cpython/pull/31834#event-6243230384 |
| https://github.com/kumaraditya303 |
| kumaraditya303 | https://github.com/kumaraditya303 |
| Mar 15, 2022 | https://github.com/python/cpython/pull/31834#issuecomment-1067989687 |
| @asvetlov | https://github.com/asvetlov |
| @gvanrossum | https://github.com/gvanrossum |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
| https://github.com/blhsing |
| blhsing | https://github.com/blhsing |
|
Dec 25, 2024
| https://github.com/python/cpython/pull/31834#ref-pullrequest-2757346688 |
|
gh-128213: fast path for bytes creation from list and tuple
#128214
| https://github.com/python/cpython/pull/128214 |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31834 |
|
| https://github.com/JelleZijlstra |
|
JelleZijlstra
| https://github.com/JelleZijlstra |
|
| https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
|
| https://github.com/asvetlov |
|
asvetlov
| https://github.com/asvetlov |
|
| https://github.com/python/cpython/pull/31834/files/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
|
| https://github.com/gvanrossum |
|
gvanrossum
| https://github.com/gvanrossum |
|
| https://github.com/python/cpython/pull/31834/files/18e41d576a519ded5d564c3de80b63cb8bcfda3e |
|
| https://github.com/peendebak |
|
peendebak
| https://github.com/peendebak |
|
| https://github.com/python/cpython/pull/31834/files/ce8d0cfaadf498513da498794ac5d118b51a5bbb |
| Please reload this page | https://github.com/python/cpython/pull/31834 |
|
| https://github.com/kumaraditya303 |
|
| https://github.com/asvetlov |
|
| https://github.com/JelleZijlstra |
|
| https://github.com/gvanrossum |
|
| https://github.com/peendebak |
|
| https://github.com/the-knights-who-say-ni |
|
| https://github.com/bedevere-bot |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |