Title: Experiment with tracking which entities actually may be narrowed · Issue #51525 · microsoft/TypeScript · GitHub
Open Graph Title: Experiment with tracking which entities actually may be narrowed · Issue #51525 · microsoft/TypeScript
X Title: Experiment with tracking which entities actually may be narrowed · Issue #51525 · microsoft/TypeScript
Description: In Pyright, narrowing can be avoided by keeping track of which entities actually get narrowed within a given scope. This could save a good amount of time by avoiding redundant walks up the control flow graph just to discover nothing inte...
Open Graph Description: In Pyright, narrowing can be avoided by keeping track of which entities actually get narrowed within a given scope. This could save a good amount of time by avoiding redundant walks up the control ...
X Description: In Pyright, narrowing can be avoided by keeping track of which entities actually get narrowed within a given scope. This could save a good amount of time by avoiding redundant walks up the control ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/51525
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Experiment with tracking which entities actually may be narrowed","articleBody":"In Pyright, narrowing can be avoided by keeping track of which entities actually get narrowed within a given scope. This could save a good amount of time by avoiding redundant walks up the control flow graph just to discover nothing interesting a given variable or property.\r\n\r\nI'm not sure if Pyright also tracks the first location at which an entity may be narrowed, but that information could also be used to signal when a narrowing walk needs to stop.\r\n\r\nThis would come at the cost of some memory overhead, but we'd need to experiment to see what the trade-offs are.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2022-11-14T20:20:29Z","url":"https://github.com/microsoft/TypeScript/issues/51525"}
| 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:637b643b-4786-5403-3679-c7775a7a7228 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8590:2F9718:984432:CDAAA1:6B00ED3C |
| html-safe-nonce | fd683b3f452979f89c58f36d546f23813820ebd4438f0bf77e2190feed00bcab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTkwOjJGOTcxODo5ODQ0MzI6Q0RBQUExOjZCMDBFRDNDIiwidmlzaXRvcl9pZCI6Ijc2NjY0NzIyOTY3OTc3NjA4MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73aeb0c2d4a819409f59bc14fe15276afecd88312b8ae3bfab3a8aa86b5563ad |
| hovercard-subject-tag | issue:1448693245 |
| 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/51525/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bd4609030b9bbc888d2c301d8f589777c4757440b2aa9db0b15266b99006fb7/microsoft/TypeScript/issues/51525 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bd4609030b9bbc888d2c301d8f589777c4757440b2aa9db0b15266b99006fb7/microsoft/TypeScript/issues/51525 |
| og:image:alt | In Pyright, narrowing can be avoided by keeping track of which entities actually get narrowed within a given scope. This could save a good amount of time by avoiding redundant walks up the control ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| 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