René's URL Explorer Experiment


Title: Degenerate compiler performance when processing large unions · Issue #37744 · microsoft/TypeScript · GitHub

Open Graph Title: Degenerate compiler performance when processing large unions · Issue #37744 · microsoft/TypeScript

X Title: Degenerate compiler performance when processing large unions · Issue #37744 · microsoft/TypeScript

Description: TypeScript Version: 3.9.0-dev.20200328 Search Terms: large union, performance, indexed access Code type BigUnion = { name: '1'; children: BigUnion[]; } | { name: '2'; children: BigUnion[]; // 1000 more ....... } | { name: '1003'; childre...

Open Graph Description: TypeScript Version: 3.9.0-dev.20200328 Search Terms: large union, performance, indexed access Code type BigUnion = { name: '1'; children: BigUnion[]; } | { name: '2'; children: BigUnion[]; // 1000 ...

X Description: TypeScript Version: 3.9.0-dev.20200328 Search Terms: large union, performance, indexed access Code type BigUnion = { name: '1'; children: BigUnion[]; } | { name: '2'; children: BigU...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/37744

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Degenerate compiler performance when processing large unions","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:**  3.9.0-dev.20200328\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** large union, performance, indexed access\r\n\r\n**Code**\r\n\r\n```ts\r\ntype BigUnion = {\r\n  name: '1';\r\n  children: BigUnion[];\r\n} | {\r\n  name: '2';\r\n  children: BigUnion[];\r\n  // 1000 more .......\r\n} | {\r\n  name: '1003';\r\n  children: BigUnion[];\r\n};\r\n\r\ntype DiscriminateUnion\u003cT, K extends keyof T, V extends T[K]> = T extends Record\u003cK, V> ? T : never;\r\n\r\ntype WithName\u003cT extends BigUnion['name']> = DiscriminateUnion\u003cBigUnion, 'name', T>;\r\n\r\ntype ChildrenOf\u003cT extends BigUnion> = T['children'][number];\r\n\r\nexport function makeThing\u003cT extends BigUnion['name']>(\r\n  name: T,\r\n  children: ChildrenOf\u003cWithName\u003cT>>[] = [],\r\n) { }\r\n```\r\n\r\n**Expected behavior:**\r\nIt compiles reasonably quickly.\r\n\r\n*Note:* This happens even when `children` is not a recursive reference. In my project `children` is an array of specific subtypes of `BigUnion` but it is closed source.\r\n\r\n**Actual behavior:**\r\nIt takes over 90s to compile on a 2019 Macbook Pro using node or the playground link.\r\n\r\n```\r\n  % tsc --noEmit --diagnostics --extendedDiagnostics --generateCpuProfile out.prof simple.ts\r\nFiles:                           6\r\nLines:                       27987\r\nNodes:                      122358\r\nIdentifiers:                 44171\r\nSymbols:                     32200\r\nTypes:                       19618\r\nMemory used:               234674K\r\nAssignability cache size:  2055962\r\nIdentity cache size:             0\r\nSubtype cache size:              0\r\nStrict subtype cache size:       0\r\nI/O Read time:               0.01s\r\nParse time:                  0.30s\r\nProgram time:                0.32s\r\nBind time:                   0.15s\r\nCheck time:                 97.49s\r\nTotal time:                 97.95s\r\n✨  Done in 98.49s.\r\n```\r\n[cpuprofile.prof.zip](https://github.com/microsoft/TypeScript/files/4418098/cpuprofile.prof.zip)\r\n\r\n**Playground Link:** [Playground Link](https://www.typescriptlang.org/play/?ts=Nightly#code/C4TwDgpgBAQglgcwKoDs4HsVQLxQN4BQUUKAhgLYQBcUA5AIy0DcRUAxgBZwA2AJgE4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6hAP6gGJB76pAAA+HAIB8Bt+qBgAJQgDYHQH4F4AvvvrvpAYQYAH4kGaAUAIAAA3CAfgNeje6AAAdTgGAA4AADkAhr7kHIHP7ExaBrBaB4HEGd797D7j7T7z6PAL6gw76eGAhaA76r64GaHwBoAABhXkAAeX-vYZfpQa4ZBAQdwCvokFoHgj4YkBQAAFdyAAAjKhrwAgF+sALB4AKAf+8xlANgYAEwFx9AdALRiB9+3R8kaRygPhuBgACilFvq9FUZhA0YvoYaYdYcoGvrgbgekEQekBvoIAAEp8AoBZACAgA)\r\n\r\n**Related Issues:** #29350","author":{"url":"https://github.com/nomcopter","@type":"Person","name":"nomcopter"},"datePublished":"2020-04-01T23:33:31Z","url":"https://github.com/microsoft/TypeScript/issues/37744"}

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:e0796725-e5f4-3773-efb5-7151714ad475
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9444:299992:851D0B:AFE971:6B01AE94
html-safe-nonce8614144dbf4d63c9ac252780723fa84744faccf3d51c294853154fb750585790
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDQ0OjI5OTk5Mjo4NTFEMEI6QUZFOTcxOjZCMDFBRTk0IiwidmlzaXRvcl9pZCI6Ijg2NjY3Nzg2MzI1MzE4NDg4NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5dbecfdbb48bfa3293e4ab3011d1ed418b53c4b488dab882ded93b7f0dc02ab8
hovercard-subject-tagissue:592264089
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/microsoft/TypeScript/37744/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0a0844014d05e25b7edd7a4e02636b204326a8a1edb3fcb5674eb52da15da7a9/microsoft/TypeScript/issues/37744
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0a0844014d05e25b7edd7a4e02636b204326a8a1edb3fcb5674eb52da15da7a9/microsoft/TypeScript/issues/37744
og:image:altTypeScript Version: 3.9.0-dev.20200328 Search Terms: large union, performance, indexed access Code type BigUnion = { name: '1'; children: BigUnion[]; } | { name: '2'; children: BigUnion[]; // 1000 ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenomcopter
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/37744#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37744
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%2Fmicrosoft%2FTypeScript%2Fissues%2F37744
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=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/37744
Reloadhttps://github.com/microsoft/TypeScript/issues/37744
Reloadhttps://github.com/microsoft/TypeScript/issues/37744
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37744
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37744
#37749https://github.com/microsoft/TypeScript/pull/37749
Degenerate compiler performance when processing large unionshttps://github.com/microsoft/TypeScript/issues/37744#top
#37749https://github.com/microsoft/TypeScript/pull/37749
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: PerformancePerformance relatedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Performance%22
https://github.com/nomcopter
Kevin Verdieck (nomcopter)https://github.com/nomcopter
on Apr 1, 2020https://github.com/microsoft/TypeScript/issues/37744#issue-592264089
cpuprofile.prof.ziphttps://github.com/microsoft/TypeScript/files/4418098/cpuprofile.prof.zip
Playground Linkhttps://www.typescriptlang.org/play/?ts=Nightly#code/C4TwDgpgBAQglgcwKoDs4HsVQLxQN4BQUUKAhgLYQBcUA5AIy0DcRUAxgBZwA2AJgE4QUNeMjSYA2gF0WAXygAffKzKUatAEzNWnHgKEjEqDCmlzFy4qup0AzNuK6+g4bCPjTMgvKWErFG1oAFgd2LmcDNzETM28LPxIA9QBWUKd9V1FjSS8fS0S1OgA2NPCMw2ic818VJLoAdlK9Fwrsz2r863UADiaIzPcY3PjawtoATj7yqLbYvISuunoABimWmY85kf8x+kYWRzL1rM3hmp3A+i0DsObIk6GOhbqGexv048GquPOCy5D3kd7l92j9Oi96KlAXcBpVQfNRpcStD+q1Tk9Eep6I0UdMHt8ERcsb1cZ84VtfosGJNScDyWdwWMNKtabDZgznkz9jogWz0WDOYENNceTC0Y8BZi6Bo3qLURsJYS-uoNAC5XiQRTGUKoeqyeyMUTpci9XSDZKjZocaa+YrtsrpSSbeKCfaqRoac6Fa7KS9bCyvfj4W6-dzDmLvcHfWNbCLw-Kg1rBepbLL4xr6YaHbRbGr0-r+UqqbZdfmzYWQzGTWXbT7tSnrTWXVH63YnU3I0mpTnPR3Exzu0EA33NQPLUEw7cE6Os1SgnGpxnzUWXkE04uC3bo4EgnmN+Wt63gqX97WW8m6EFq6fm13x42b52x9mgu3H-3Z6ve++Zxbs8lhx-TM-ypZJJw+A86wvWhkgXCCzzvf913g29n1AvcUKfT8xmSE9MI-ECXmSa98N-FccIfUjgPIwJkjfKjl0rWjvwYitt3UIpANYw9oKKcDeVQ7DAiKOCBKwwixiKZCxIImiOIwmSyKYji8MU6jlOKEi1MY9jiko7S2KPIp6IMnjuyKFjTKg7t6i4qzzxs-iI1kjTaHqUTnKU3S3Okzz1O8+oFL8nSj3qVTgsM6D6i0iKzMtep9Ni6z4pMpKHPiyy0s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ozuglt1hoWtRqWuVpWtzqxvWuJs2pLpBp2uToWn2sruhoQtRpOvxuQuJourLtWmuuVtushvuo7ttomD5Pxperrtelhs+t7tMJWFd3-VntotnrXNntCxYAIFAEgCgAABE4AABnNgfgOAcgOAMgYACANoAAHgABUAAaKAAAaSgAgAAA8z6UBeBd6oAABrCAEAdAAAMygFvqgAADUn7X6hAP6gGJB76pAAA+HAIB8Bt+qBgAJQgDYHQH4F4AvvvrvpAYQYAH4kGaAUAIAAA3CAfgNeje6AAAdTgGAA4AADkAhr7kHIHP7ExaBrBaB4HEGd797D7j7T7z6PAL6gw76eGAhaA76r64GaHwBoAABhXkAAeX-vYZfpQa4ZBAQdwCvokFoHgj4YkBQAAFdyAAAjKhrwAgF+sALB4AKAf+8xlANgYAEwFx9AdALRiB9+3R8kaRygPhuBgACilFvq9FUZhA0YvoYaYdYcoGvrgbgekEQekBvoIAAEp8AoBZACAgA
#29350https://github.com/microsoft/TypeScript/issues/29350
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 1, 2020https://github.com/microsoft/TypeScript/issues/37744#issuecomment-607544164
Wesley Wigham (weswigham)https://github.com/weswigham
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: PerformancePerformance relatedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Performance%22
on Apr 2, 2020https://github.com/microsoft/TypeScript/issues/37744#event-3190783413
Wesley Wigham (weswigham)https://github.com/weswigham
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#37749https://github.com/microsoft/TypeScript/pull/37749
on Apr 3, 2020https://github.com/microsoft/TypeScript/issues/37744#event-3195085909
https://github.com/nomcopter
Kevin Verdieck (nomcopter)https://github.com/nomcopter
on Apr 3, 2020https://github.com/microsoft/TypeScript/issues/37744#issuecomment-608272913
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/37744#event-20416921438
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/37744
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37744
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: PerformancePerformance relatedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Performance%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.