René's URL Explorer Experiment


Title: tsc compilation slow on moderate sized project · Issue #37635 · microsoft/TypeScript · GitHub

Open Graph Title: tsc compilation slow on moderate sized project · Issue #37635 · microsoft/TypeScript

X Title: tsc compilation slow on moderate sized project · Issue #37635 · microsoft/TypeScript

Description: TypeScript Version: 3.9.0-dev.20200326 Search Terms: tsc slow compilation, tsc memory, tsc slow Program time, tsc Program time Code I'm trying to debug why my typescript compiler is taking 9-13 seconds to recompile. This impacts ts-node ...

Open Graph Description: TypeScript Version: 3.9.0-dev.20200326 Search Terms: tsc slow compilation, tsc memory, tsc slow Program time, tsc Program time Code I'm trying to debug why my typescript compiler is taking 9-13 sec...

X Description: TypeScript Version: 3.9.0-dev.20200326 Search Terms: tsc slow compilation, tsc memory, tsc slow Program time, tsc Program time Code I'm trying to debug why my typescript compiler is taking 9-13...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsc compilation slow on moderate sized project","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.20200326\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\n\r\ntsc slow compilation, tsc memory, tsc slow Program time, tsc Program time\r\n\r\n**Code**\r\n\r\nI'm trying to debug why my typescript compiler is taking 9-13 seconds to recompile. This impacts ts-node and development drastically.\r\n\r\ntypescript version: ^3.X.X\r\n\r\ntsconfig.json:\r\n\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"extendedDiagnostics\": true,\r\n    \"target\": \"es6\",\r\n    \"lib\": [\"es2017\"],\r\n    \"module\": \"commonjs\",\r\n    \"emitDeclarationOnly\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"incremental\": true,\r\n    \"noResolve\": false,\r\n    \"noEmitOnError\": false,\r\n    \"noImplicitAny\": true,\r\n    \"declaration\": true,\r\n    \"sourceMap\": true,\r\n    \"outDir\": \"dist/\",\r\n    \"moduleResolution\": \"node\",\r\n    \"skipLibCheck\": true\r\n  },\r\n  \"include\": [\r\n    \"src/**/*.ts\",\r\n    \"test/**/*.ts\"\r\n  ],\r\n  \"exclude\": [\r\n    \"node_modules\"\r\n  ]\r\n}\r\n```\r\n\r\n```\r\nnpx tsc --listFiles --generateCpuProfile profile\r\n```\r\n\r\nFiles:                         732\r\nLines:                      364288\r\nNodes:                     1133413\r\nIdentifiers:                417612\r\nSymbols:                    236577\r\nTypes:                          76\r\nInstantiations:                  0\r\nMemory used:               330244K\r\nAssignability cache size:        0\r\nIdentity cache size:             0\r\nSubtype cache size:              0\r\nStrict subtype cache size:       0\r\nI/O Read time:               2.51s\r\nParse time:                  3.77s\r\nResolveTypeReference time:   0.33s\r\nResolveModule time:          2.91s\r\nProgram time:                9.86s\r\nBind time:                   1.39s\r\nTotal time:                 11.25s\r\n\r\nFile List Here:  https://pastebin.com/zX7TpM2x\r\n\r\nGenerated CPU Profile Here: https://gist.github.com/rightisleft/d3c77fe2c643ba4c7832a94209f53ef2\r\n\r\n**Expected behavior:**\r\n\r\nThis is a mid sized project, it should have a 1-3 second compile time\r\n\r\n**Actual behavior:**\r\n\r\nCompile takes anywhere from 9-14 seconds per line change","author":{"url":"https://github.com/rightisleft","@type":"Person","name":"rightisleft"},"datePublished":"2020-03-27T03:06:35Z","url":"https://github.com/microsoft/TypeScript/issues/37635"}

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:4d6e7a0f-6c12-7f23-2bf1-58e97df17a99
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0F2:6DC60:23328C1:2C76A7A:6B01B211
html-safe-nonce4923522d164710a9b41c80da8e22fab5557d19567a05ffb7f3bce345772ec5c1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEYyOjZEQzYwOjIzMzI4QzE6MkM3NkE3QTo2QjAxQjIxMSIsInZpc2l0b3JfaWQiOiIxMTgyNTU1NjQ2ODczMTU0MDY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf1b50b522e37cc1d25ac324b670446ceb2e648d4c26ee15f530f40f5384f3d26
hovercard-subject-tagissue:588854131
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/37635/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9ec202a9b36f4451a7d3d14f974101836cdfbb89a8010f18ff3070a9eb650270/microsoft/TypeScript/issues/37635
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9ec202a9b36f4451a7d3d14f974101836cdfbb89a8010f18ff3070a9eb650270/microsoft/TypeScript/issues/37635
og:image:altTypeScript Version: 3.9.0-dev.20200326 Search Terms: tsc slow compilation, tsc memory, tsc slow Program time, tsc Program time Code I'm trying to debug why my typescript compiler is taking 9-13 sec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerightisleft
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/37635#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37635
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%2F37635
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/37635
Reloadhttps://github.com/microsoft/TypeScript/issues/37635
Reloadhttps://github.com/microsoft/TypeScript/issues/37635
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/37635
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37635
tsc compilation slow on moderate sized projecthttps://github.com/microsoft/TypeScript/issues/37635#top
https://github.com/amcasey
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
https://github.com/rightisleft
Jack Murphy (rightisleft)https://github.com/rightisleft
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issue-588854131
https://pastebin.com/zX7TpM2xhttps://pastebin.com/zX7TpM2x
https://gist.github.com/rightisleft/d3c77fe2c643ba4c7832a94209f53ef2https://gist.github.com/rightisleft/d3c77fe2c643ba4c7832a94209f53ef2
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#event-3170881108
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#event-3170881211
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605164091
Jack Murphy (@rightisleft)https://github.com/rightisleft
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605205004
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605205466
https://github.com/rightisleft
Jack Murphy (rightisleft)https://github.com/rightisleft
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605317753
TypeORMhttps://github.com/typeorm/typeorm/blob/master/docs/migrations.md#generating-migrations
https://github.com/rightisleft
Jack Murphy (rightisleft)https://github.com/rightisleft
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605327065
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 27, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605352433
https://github.com/rightisleft
Jack Murphy (rightisleft)https://github.com/rightisleft
on Mar 28, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-605502098
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 30, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-606130755
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 30, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-606140985
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Mar 30, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-606146139
https://github.com/rightisleft
Jack Murphy (rightisleft)https://github.com/rightisleft
on Apr 1, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-607345113
Andrew Casey (@amcasey)https://github.com/amcasey
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Apr 1, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-607397584
Jack Murphy (@rightisleft)https://github.com/rightisleft
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Apr 10, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-612123374
Jack Murphy (@rightisleft)https://github.com/rightisleft
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Sep 3, 2020https://github.com/microsoft/TypeScript/issues/37635#issuecomment-686163917
Andrew Casey (amcasey)https://github.com/amcasey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 3, 2020https://github.com/microsoft/TypeScript/issues/37635#event-3722384153
https://github.com/mmahalwy
m.e. (mmahalwy)https://github.com/mmahalwy
on Nov 8, 2021https://github.com/microsoft/TypeScript/issues/37635#issuecomment-963656669
Andrew Casey (@amcasey)https://github.com/amcasey
https://github.com/amcasey
Andrew Casey (amcasey)https://github.com/amcasey
on Nov 10, 2021https://github.com/microsoft/TypeScript/issues/37635#issuecomment-964669062
m.e. (@mmahalwy)https://github.com/mmahalwy
performance tracinghttps://github.com/microsoft/TypeScript/wiki/Performance#performance-tracing
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/37635
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37635
Andrew Casey (amcasey)https://github.com/amcasey
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%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.