Title: Compilation time significantly slower in 3.7.1-RC vs 3.5.2, essentially the "check time" part. · Issue #34920 · microsoft/TypeScript · GitHub
Open Graph Title: Compilation time significantly slower in 3.7.1-RC vs 3.5.2, essentially the "check time" part. · Issue #34920 · microsoft/TypeScript
X Title: Compilation time significantly slower in 3.7.1-RC vs 3.5.2, essentially the "check time" part. · Issue #34920 · microsoft/TypeScript
Description: TypeScript Version: 3.7.1-RC Search Terms: Compilation time Check time 3.7.1-RC Code // takes 25-30 minutes node --max-old-space-size=8092 "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.7\tsc.js" // takes 2-3 minutes node --max-old-...
Open Graph Description: TypeScript Version: 3.7.1-RC Search Terms: Compilation time Check time 3.7.1-RC Code // takes 25-30 minutes node --max-old-space-size=8092 "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.7\tsc....
X Description: TypeScript Version: 3.7.1-RC Search Terms: Compilation time Check time 3.7.1-RC Code // takes 25-30 minutes node --max-old-space-size=8092 "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.7...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/34920
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Compilation time significantly slower in 3.7.1-RC vs 3.5.2, essentially the \"check time\" part.","articleBody":"**TypeScript Version:** 3.7.1-RC\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** Compilation time Check time 3.7.1-RC \r\n\r\n**Code**\r\n\r\n```ts\r\n// takes 25-30 minutes\r\nnode --max-old-space-size=8092 \"C:\\Program Files (x86)\\Microsoft SDKs\\TypeScript\\3.7\\tsc.js\"\r\n// takes 2-3 minutes\r\nnode --max-old-space-size=8092 \"C:\\Program Files (x86)\\Microsoft SDKs\\TypeScript\\3.5\\tsc.js\"\r\n```\r\n\r\n**Expected behavior:** Compilation should take a reasonable amount of time\r\n\r\n**Actual behavior:** Compilation is 10 times slower than 3.5.2 version.\r\n\r\n**Related Issues:** maybe related: https://github.com/Microsoft/TypeScript/issues/24435 \r\n\r\nHi, we give a try at typescript 3.7.1-RC today (upgrading from 3.5.2) and we are facing a significant increase of build time. \r\n\r\nI've launched the compilation with extendedDiagnostics flag and this is the \"check time\" which is a lot slower.\r\n\r\nIn 3.7.1-rc:\r\n\r\nFiles: 532\r\nLines: 402274\r\nNodes: 1927658\r\nIdentifiers: 684045\r\nSymbols: 1844544\r\nTypes: 528324\r\nMemory used: 1857090K\r\nAssignability cache size: 337352\r\nIdentity cache size: 10477\r\nSubtype cache size: 88675\r\nI/O Read time: 0.15s\r\nParse time: 3.89s\r\nProgram time: 4.72s\r\nBind time: 2.84s\r\n**Check time: 1480.74s**\r\ntransformTime time: 9.18s\r\ncommentTime time: 0.28s\r\nI/O Write time: 0.41s\r\nprintTime time: 22.17s\r\nEmit time: 22.25s\r\nTotal time: 1510.55s\r\n\r\nIn 3.5.2:\r\n\r\nFiles: 532\r\nLines: 400795\r\nNodes: 2122066\r\nIdentifiers: 672829\r\nSymbols: 1707809\r\nTypes: 518149\r\nMemory used: 1781530K\r\nAssignability cache size: 333702\r\nIdentity cache size: 1968\r\nSubtype cache size: 88497\r\nI/O Read time: 0.14s\r\nParse time: 3.51s\r\nProgram time: 4.22s\r\nBind time: 2.50s\r\n**Check time: 85.37s**\r\ntransformTime time: 11.09s\r\ncommentTime time: 0.13s\r\nI/O Write time: 0.56s\r\nprintTime time: 33.09s\r\nEmit time: 33.16s\r\nTotal time: 125.24s\r\n\r\nDo you have any clue of what is going on ? I've saw nothing in breaking change that could cause that.\r\n\r\nThanks in advance.\r\n\r\nthe tsconfig.json used:\r\n```json\r\n{\r\n \"compileOnSave\": true,\r\n \"compilerOptions\": {\r\n \"incremental\": false,\r\n \"outDir\": \"./dist/js\",\r\n \"noImplicitAny\": false,\r\n \"allowJs\": false,\r\n \"checkJs\": false,\r\n \"noEmitOnError\": true,\r\n \"removeComments\": true,\r\n \"sourceMap\": false,\r\n \"target\": \"es5\",\r\n \"lib\": [\r\n \"dom\",\r\n \"es5\",\r\n \"scripthost\",\r\n \"es2015.promise\",\r\n \"es2015.collection\",\r\n \"es2015.core\",\r\n \"es2015.generator\",\r\n \"es2015.iterable\",\r\n \"es2015.proxy\",\r\n \"es2015.reflect\",\r\n \"es2015.symbol\",\r\n \"es2015.symbol.wellknown\"\r\n ],\r\n \"rootDir\": \"./src/js\",\r\n \"noResolve\": true,\r\n \"module\": \"amd\",\r\n \"moduleResolution\": \"node\",\r\n \"experimentalDecorators\": false,\r\n \"jsx\": \"react\"\r\n },\r\n \"include\": [\r\n \"./src/**/*.js\",\r\n \"./src/**/*.ts\",\r\n \"./src/**/*.tsx\",\r\n \"./Scripts/typings/**/*.ts\"\r\n ],\r\n \"exclude\": [\r\n \"./Scripts/excludedtypings/**/*.ts\",\r\n \"node_modules\",\r\n \"node_modules/@types\",\r\n \"wwwroot\"\r\n ]\r\n}\r\n```\r\n","author":{"url":"https://github.com/Ikaer","@type":"Person","name":"Ikaer"},"datePublished":"2019-11-05T15:39:55Z","url":"https://github.com/microsoft/TypeScript/issues/34920"}
| 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/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:545aa893-6acb-f2e7-136d-a682ffa22668 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D602:2E5652:AA1EDC:D99CDD:6B00F5BA |
| html-safe-nonce | d8fb21aa87f004f81f90a2f62c30a2b02a1211d7d1e82d650b5f5d48b793a6cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjAyOjJFNTY1MjpBQTFFREM6RDk5Q0REOjZCMDBGNUJBIiwidmlzaXRvcl9pZCI6IjM0NTk3MzcyNTI2OTM4NjU5MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e23f1f5e0ea674fe2f6410cb75998e066fe13ed99cfcb1268bf529ccd0d808be |
| hovercard-subject-tag | issue:517851505 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/34920/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee11d1be65f9c09e724629e36906283e9a04bc08d774450436bb0a447ccd9c53/microsoft/TypeScript/issues/34920 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee11d1be65f9c09e724629e36906283e9a04bc08d774450436bb0a447ccd9c53/microsoft/TypeScript/issues/34920 |
| og:image:alt | TypeScript Version: 3.7.1-RC Search Terms: Compilation time Check time 3.7.1-RC Code // takes 25-30 minutes node --max-old-space-size=8092 "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.7\tsc.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ikaer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width