| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0c1eeefc-af9f-5e71-bbf0-4d1597314c89 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A274:1C6C3E:97F198:CAB1A7:6B00E431 |
| html-safe-nonce | 8831a2c1debe493a895fa696836709a630482005fe763bfb44b97762ab326eca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjc0OjFDNkMzRTo5N0YxOTg6Q0FCMUE3OjZCMDBFNDMxIiwidmlzaXRvcl9pZCI6IjcxMjIwMzc1MjIxODc3NDAyMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6cad61ebe3ff537835a3087f04776b3c3ed8f3f6bc1a235e5259cfc2c6babbdb |
| hovercard-subject-tag | pull_request:4062293698 |
| 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/purescript-lua/purescript-lua/280/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/7fa6d2e7e794eb91dc847e738fd68127db96d1809d24cddd3d1b5ac84128bc7b/purescript-lua/purescript-lua/pull/280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7fa6d2e7e794eb91dc847e738fd68127db96d1809d24cddd3d1b5ac84128bc7b/purescript-lua/purescript-lua/pull/280 |
| og:image:alt | Closes #206.
Problem
A function whose every return path builds the same constructor allocates a table per call even when every caller immediately takes the result apart. A State-shaped step pays on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-cache |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/purescript-lua/purescript-lua/pull/280#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| 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 |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | 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/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280 |
| 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=purescript-lua%2Fpurescript-lua |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/280 |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/280 |
| Reload | https://github.com/purescript-lua/purescript-lua/pull/280 |
| purescript-lua | https://github.com/purescript-lua |
| purescript-lua | https://github.com/purescript-lua/purescript-lua |
| Code | https://github.com/purescript-lua/purescript-lua |
| Issues48 (48) | https://github.com/purescript-lua/purescript-lua/issues |
| Pull requests | https://github.com/purescript-lua/purescript-lua/pulls |
| Discussions | https://github.com/purescript-lua/purescript-lua/discussions |
| Actions | https://github.com/purescript-lua/purescript-lua/actions |
| Projects | https://github.com/purescript-lua/purescript-lua/projects |
| Security and quality | https://github.com/purescript-lua/purescript-lua/security |
| Insights | https://github.com/purescript-lua/purescript-lua/insights |
| https://github.com/purescript-lua/purescript-lua |
| Unisay | https://github.com/Unisay |
| main | https://github.com/purescript-lua/purescript-lua/tree/main |
| issue-206/cpr-result-worker-wrapper | https://github.com/purescript-lua/purescript-lua/tree/issue-206/cpr-result-worker-wrapper |
| Conversation | https://github.com/purescript-lua/purescript-lua/pull/280 |
| Commits7 (7) | https://github.com/purescript-lua/purescript-lua/pull/280/commits |
| Checks | https://github.com/purescript-lua/purescript-lua/pull/280/checks |
| Files changed | https://github.com/purescript-lua/purescript-lua/pull/280/files |
| CPR-style worker/wrapper on results: constructed products as Lua multiple values | https://github.com/purescript-lua/purescript-lua/pull/280#top |
| Unisay | https://github.com/Unisay |
| main | https://github.com/purescript-lua/purescript-lua/tree/main |
| issue-206/cpr-result-worker-wrapper | https://github.com/purescript-lua/purescript-lua/tree/issue-206/cpr-result-worker-wrapper |
|
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| Jul 15, 2026 | https://github.com/purescript-lua/purescript-lua/pull/280#issue-4894661186 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| #24 | https://github.com/purescript-lua/purescript-lua/issues/24 |
| SpecConstr: specialize recursive functions on known-constructor call patterns #279 | https://github.com/purescript-lua/purescript-lua/pull/279 |
| SpecConstr: specialize recursive functions on known-constructor call patterns #279 | https://github.com/purescript-lua/purescript-lua/pull/279 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
| Unisay | https://github.com/Unisay |
| July 15, 2026 18:19 | https://github.com/purescript-lua/purescript-lua/pull/280#commits-pushed-75651fb |
|
| https://github.com/Unisay |
| test(bench): add a static TNEW/TDUP census | https://github.com/purescript-lua/purescript-lua/pull/280/commits/75651fb16796fbc36c3b10c566fb37c74cedea41 |
| 75651fb | https://github.com/purescript-lua/purescript-lua/pull/280/commits/75651fb16796fbc36c3b10c566fb37c74cedea41 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
|
| https://github.com/Unisay |
| test(ps): pin per-step product allocation before the result split ( | https://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| ) | https://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e |
| 2424d2d | https://github.com/purescript-lua/purescript-lua/pull/280/commits/2424d2d3457a602cd37b915643460dd77a88d16e |
|
| https://github.com/Unisay |
| feat(ir): add Values/LetValues multi-value result nodes ( | https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| ) | https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405 |
| 59ce434 | https://github.com/purescript-lua/purescript-lua/pull/280/commits/59ce434fa995823474239fb31a991b8aa7987405 |
|
| https://github.com/Unisay |
| feat(ir): CPR result worker/wrapper split ( | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| ) | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98 |
| 0e9fa1f | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0e9fa1ff1f2c2c3dd139abb25ebb9227471c3b98 |
|
| https://github.com/Unisay |
| feat(optimizer): run the CPR split in the pipeline ( | https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| ) | https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442 |
| cb14de3 | https://github.com/purescript-lua/purescript-lua/pull/280/commits/cb14de38cc28a1337caf964a4401592961c52442 |
|
| https://github.com/Unisay |
| test(golden): accept the multi-value result shapes ( | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384 |
| #206 | https://github.com/purescript-lua/purescript-lua/issues/206 |
| ) | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384 |
| 0830589 | https://github.com/purescript-lua/purescript-lua/pull/280/commits/0830589575ca5638df9c10d89b6c684225ac1384 |
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| July 15, 2026 16:59 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28028038998 |
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| Jul 15, 2026 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28028039949 |
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| July 15, 2026 16:59 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28028042605 |
| started reviewing | https://github.com/purescript-lua/purescript-lua/sessions/7f2b9c14-eccf-4002-a8cf-ca66ae72ad29 |
| Unisay | https://github.com/Unisay |
| July 15, 2026 16:59 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28028060683 |
|
View session
| https://github.com/purescript-lua/purescript-lua/sessions/7f2b9c14-eccf-4002-a8cf-ca66ae72ad29 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Jul 15, 2026
| https://github.com/purescript-lua/purescript-lua/pull/280#pullrequestreview-4706450271 |
|
View reviewed changes
| https://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384 |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/purescript-lua/purescript-lua/pull/280#pullrequestreview-4706450271 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
| test/ps/src/Golden/CprState/Test.purs | https://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384#diff-d0cdbb20bd943f1ef2bc30dd2991b766d7f25c3606af303d72d5c3aa6212f3af |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
|
| https://github.com/Unisay |
| test(ps): address copilot review on PR | https://github.com/purescript-lua/purescript-lua/pull/280/commits/7aa3887fbb760f40ded9fa0419fca12e8c498495 |
| #280 | https://github.com/purescript-lua/purescript-lua/pull/280 |
| 7aa3887 | https://github.com/purescript-lua/purescript-lua/pull/280/commits/7aa3887fbb760f40ded9fa0419fca12e8c498495 |
| #280 (comment) | https://github.com/purescript-lua/purescript-lua/pull/280#discussion_r3589283345 |
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| f3ca78a | https://github.com/purescript-lua/purescript-lua/commit/f3ca78a5024e6b2b0320454261115b6489d2d4a7 |
| Jul 16, 2026 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28060836400 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
| https://github.com/Unisay |
| Unisay | https://github.com/Unisay |
| July 16, 2026 09:16 | https://github.com/purescript-lua/purescript-lua/pull/280#event-28060837839 |
| https://github.co/hiddenchars |
| https://github.com/purescript-lua/purescript-lua/pull/{{ revealButtonHref }} |
| 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%2Fpurescript-lua%2Fpurescript-lua%2Fpull%2F280 |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
| Learn more about Copilot code review. | https://gh.io/copilot-code-review-docs |
|
| https://github.com/purescript-lua/purescript-lua/pull/280/files/0830589575ca5638df9c10d89b6c684225ac1384 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
|
| https://github.com/Unisay |
|
Unisay
| https://github.com/Unisay |
|
CPR-style worker/wrapper on results: return constructed products as Lua multiple values
| https://github.com/purescript-lua/purescript-lua/issues/206 |
| Please reload this page | https://github.com/purescript-lua/purescript-lua/pull/280 |
|
| https://github.com/Unisay |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| 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 |