Title: Too much compile time to resolve a complex function signiture definition. · Issue #7082 · microsoft/TypeScript · GitHub
Open Graph Title: Too much compile time to resolve a complex function signiture definition. · Issue #7082 · microsoft/TypeScript
X Title: Too much compile time to resolve a complex function signiture definition. · Issue #7082 · microsoft/TypeScript
Description: Example Environment typescript@1.9.0-dev.20160207 rxjs@5.0.0-beta.2 Abstraction I found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition when I update rxjs to 5.0.0-beta.2 from 5....
Open Graph Description: Example Environment typescript@1.9.0-dev.20160207 rxjs@5.0.0-beta.2 Abstraction I found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition wh...
X Description: Example Environment typescript@1.9.0-dev.20160207 rxjs@5.0.0-beta.2 Abstraction I found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition wh...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7082
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Too much compile time to resolve a complex function signiture definition.","articleBody":"## Example Environment\n- typescript@1.9.0-dev.20160207\n- rxjs@5.0.0-beta.2\n## Abstraction\n\nI found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition when I update rxjs to `5.0.0-beta.2` from `5.0.0-beta.1` (https://github.com/karen-irc/karen/pull/574).\n\nBut after [this commit](https://github.com/karen-irc/karen/commit/c3e0926e7bb89b4682cdd47ba8778ca090d60c96), the compile time was recovered to the previous one.\n\n| | beta.1 | beta.2 | beta.2 + explicit type annotations |\n| --- | --- | --- | --- |\n| Files: | 111 | 124 | 124 |\n| Lines: | 28560 | 29011 | 29012 |\n| Nodes: | 119182 | 125219 | 125258 |\n| Identifiers: | 44304 | 46931 | 46945 |\n| Symbols: | 2960494 | 5126214 | 3375603 |\n| Types: | 66178 | 1069572 | 41087 |\n| Memory used: | 165777K | 1264781K | 118627K |\n| I/O read: | 0.03s | 0.04s | 0.04s |\n| I/O write: | 0.32s | 0.31s | 0.22s |\n| Parse time: | 0.48s | 0.73s | 0.64s |\n| Bind time: | 0.28s | 0.41s | 0.31s |\n| Check time: | 1.83s | 31.48s | 1.67s |\n| Emit time: | 0.52s | 1.53s | 0.43s |\n| Total time: | 3.10s | 34.15s | 3.05s |\n\nrxjs@5.0.0-beta.2 has some pretty complex type signitured functions:\n- [`combineLatest()`](https://github.com/ReactiveX/RxJS/blob/603c9eb1e0cb97f0904734e594dce398776306bb/src/operator/combineLatest.ts#L42-L87)\n- [`zip()`](https://github.com/ReactiveX/RxJS/blob/603c9eb1e0cb97f0904734e594dce398776306bb/src/operator/zip.ts#L18-L53)\n\nI know the type inference is not omnipotent, it need a complex computations, and this issue may be a corner-case of TypeScript compiler.\nBut I also think this would be a problem if libraries having a complex type signatures rises in the future.\n\nCould you resolve this problem?\n","author":{"url":"https://github.com/tetsuharuohzeki","@type":"Person","name":"tetsuharuohzeki"},"datePublished":"2016-02-15T08:30:58Z","url":"https://github.com/microsoft/TypeScript/issues/7082"}
| 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:551e3e1b-d764-896f-822e-75bd0c1fc1d9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EE38:17FB7:1009A5:14338D:6B00F7FF |
| html-safe-nonce | f7bd4baa3b88834442838a5aa5e94f19f8f3c264f4b0e6e3055dbc493b1c7b09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTM4OjE3RkI3OjEwMDlBNToxNDMzOEQ6NkIwMEY3RkYiLCJ2aXNpdG9yX2lkIjoiNTIzMzI0NDYwNzczODg2OTc1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c15ca6f18025da3d66e24e75e94a3e3e10be8fceeadb095e3e830569b2cb16c7 |
| hovercard-subject-tag | issue:133651714 |
| 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/7082/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c8c812311e9d1dbc1d68291361d4fc8342b3f96880249f191c2c9238438209e/microsoft/TypeScript/issues/7082 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c8c812311e9d1dbc1d68291361d4fc8342b3f96880249f191c2c9238438209e/microsoft/TypeScript/issues/7082 |
| og:image:alt | Example Environment typescript@1.9.0-dev.20160207 rxjs@5.0.0-beta.2 Abstraction I found the case that the compile time of tsc increases to ~15x to resolve a complex function signature definition wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tetsuharuohzeki |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width