| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:1feb0e6c-18d9-3102-c5d2-59907b5adb87 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C7DE:A6578:73D9445:9E43115:69961872 |
| html-safe-nonce | ed2a2a4817a6c6c5b91d845bcd17cad5f84df296b29fd64bc43ded0abbe91b97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0RFOkE2NTc4OjczRDk0NDU6OUU0MzExNTo2OTk2MTg3MiIsInZpc2l0b3JfaWQiOiIzODczMDI4Mzk2MzUyNDExNzYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b20659b4687cd4ed0ef242abc06f9be76b0a81eb9fb9ce28ab86b565bdf3ecb6 |
| hovercard-subject-tag | pull_request:2679897101 |
| 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 | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
| twitter:image | https://avatars.githubusercontent.com/u/49389276?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/49389276?s=400&v=4 |
| og:image:alt | Context recap (#64192)
Let's consider that we have an input iterable and N = len(iterable).
Current multiprocessing.Pool.imap and multiprocessing.Pool.imap_unordered are O(N) in space (unecessa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7490a2fd98baca866acf503b81aa249491b42e5b4bab7f7a2801be81175c8845 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | 48a904441630875f5985de713035046dc65cc94c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136871%2Fcommits%2Fc941c16ddee10614a427e655d71b4974c8468c3d |
| 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%2F136871%2Fcommits%2Fc941c16ddee10614a427e655d71b4974c8468c3d |
|
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
| Reload | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
| Reload | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
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
| 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 |
| obaltian | https://github.com/obaltian |
| python:main | https://github.com/python/cpython/tree/main |
| obaltian:feature/add-buffersize-to-multiprocessing | https://github.com/obaltian/cpython/tree/feature/add-buffersize-to-multiprocessing |
|
Conversation
27
| https://github.com/python/cpython/pull/136871 |
|
Commits
23
| https://github.com/python/cpython/pull/136871/commits |
|
Checks
41
| https://github.com/python/cpython/pull/136871/checks |
|
Files changed
| https://github.com/python/cpython/pull/136871/files |
| Please reload this page | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
gh-64192: Make imap()/imap_unordered() in multiprocessing.pool actually lazy
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#top |
|
Show all changes
23 commits
| https://github.com/python/cpython/pull/136871/files |
|
ccd0bbc
draft: impl lazy input consumption in mp.Pool.imap(_unordered)
Jul 20, 2025
| https://github.com/python/cpython/pull/136871/commits/ccd0bbc67ab284fb2cf8db72cd1be4b8115b19c2 |
|
002ef46
Use semaphore to synchronize threads
Jul 20, 2025
| https://github.com/python/cpython/pull/136871/commits/002ef46d842dbbfea7098577cd60f6f35038cba7 |
|
6e0bc58
Update buffersize behavior to match concurrent.futures.Executor behavior
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/6e0bc58796fd7e5a82a3a3394489852d73402920 |
|
62b2b6a
Release all `buffersize_lock` obj from the parent thread when terminate
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/62b2b6a9b50f3bdfb4a8930956ffa7c9afe2c29c |
|
0b6ba41
Add 2 basic `ThreadPool.imap()` tests w/ and w/o buffersize
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/0b6ba419c226eea338ef56cc1e2d1f91199c883b |
|
aade15e
Fix accidental swap in imports
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/aade15e629ccbeae2d12818b0cf8cfc4e41b39bd |
|
fb38a72
clear Pool._taskqueue_buffersize_semaphores safely
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/fb38a72056a2b1c1de4ee55e8063c85cadf8fed8 |
|
6ef488b
Slightly optimize Pool._taskqueue_buffersize_semaphores terminate
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/6ef488b51446f5dd253962cb3f6ace0968649db9 |
|
1716725
Rename `Pool.imap()` buffersize-related tests
Jul 21, 2025
| https://github.com/python/cpython/pull/136871/commits/1716725d4af6a30a648ef27c02b5d523718f7866 |
|
9b43cd0
Fix typo in `IMapIterator.__init__()`
Jul 22, 2025
| https://github.com/python/cpython/pull/136871/commits/9b43cd086b38d3d39c9446ad8c0a07524c16d037 |
|
2d89341
Add tests for buffersize combinations with other kwargs
Jul 22, 2025
| https://github.com/python/cpython/pull/136871/commits/2d8934123e563379dc3b1ab578e62beae38c089f |
|
9ab2705
Remove if-branch in `_terminate_pool`
Jul 27, 2025
| https://github.com/python/cpython/pull/136871/commits/9ab27055e3e5d71f8cd967baf0906bc1ecd5eab8 |
|
a955003
Add more edge-case tests for `imap` and `imap_unodered`
Jul 27, 2025
| https://github.com/python/cpython/pull/136871/commits/a95500340fe193e84a31c13168763737dbb7d4f7 |
|
80efd6e
Split inf iterable test for `imap` and `imap_unordered`
Jul 27, 2025
| https://github.com/python/cpython/pull/136871/commits/80efd6e56ed45aed25211b15fca0ff591c32ac3c |
|
83d6930
Add doc for `buffersize` argument of `imap` and `imap_unordered`
Jul 27, 2025
| https://github.com/python/cpython/pull/136871/commits/83d69306d1b6d0828c783e8072f4d4baf1ab4cd1 |
|
995ad8c
add *versionadded* for `imap_unordered`
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/995ad8c298677e81bdb586ebefa7360fbdfe223e |
|
3b6ad65
Remove ambiguity in `buffersize` description.
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/3b6ad65b71a93da3a770f6a4c79921aa14457a5c |
|
c941c16
Set *versionadded* as next in docs
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
d09e891
Add whatsnew entry
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/d09e891d2f887691fc0543c4e437b05e26e943d8 |
|
9c6d89d
Fix aggreed comments on code formatting/minor refactoring
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/9c6d89de5f66308882659fe6f614c3f66ad943e6 |
|
4550a01
Remove `imap` and `imap_unordered` body code duplication
Jul 28, 2025
| https://github.com/python/cpython/pull/136871/commits/4550a01bec9470991ce241a397ef5cf199aee3a1 |
|
77bde4d
Merge branch 'main' into feature/add-buffersize-to-multiprocessing
obaltian Aug 31, 2025
| https://github.com/python/cpython/pull/136871/commits/77bde4d510388a513b255fb7f88a50529f1d3627 |
|
aec39fc
Merge branch 'main' into feature/add-buffersize-to-multiprocessing
obaltian Sep 3, 2025
| https://github.com/python/cpython/pull/136871/commits/aec39fc45a8f07f38b3c9eb8fa4a0e22be70dec1 |
|
Clear filters
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
| Please reload this page | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
| Please reload this page | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
Prev
| https://github.com/python/cpython/pull/136871/commits/3b6ad65b71a93da3a770f6a4c79921aa14457a5c |
|
Next
| https://github.com/python/cpython/pull/136871/commits/d09e891d2f887691fc0543c4e437b05e26e943d8 |
| Please reload this page | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d |
|
| https://github.com/obaltian |
| obaltian | https://github.com/python/cpython/commits?author=obaltian |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L527 |
| Doc/library/multiprocessing.rst | https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#diff-2cf07acf4f2d547e93e35c6a4ba2ee818e991b54e88da4a904ee0a49acb99eb3 |
|
View file
| https://github.com/python/cpython/blob/c941c16ddee10614a427e655d71b4974c8468c3d/Doc/library/multiprocessing.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/136871/commits/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#diff-2cf07acf4f2d547e93e35c6a4ba2ee818e991b54e88da4a904ee0a49acb99eb3 |
|
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#diff-2cf07acf4f2d547e93e35c6a4ba2ee818e991b54e88da4a904ee0a49acb99eb3 |
|
| https://github.com/python/cpython/pull/136871/commits/c941c16ddee10614a427e655d71b4974c8468c3d#diff-2cf07acf4f2d547e93e35c6a4ba2ee818e991b54e88da4a904ee0a49acb99eb3 |
|
| 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 |