Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better typings for Array.map() #33832

Closed
wants to merge 1 commit into from
Closed

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Oct 6, 2019

Before

> node built/local/tsc.js --diagnostics --p src/compiler/tsconfig.json
Files:           124
Lines:        144298
Nodes:        685484
Identifiers:  274646
Symbols:      148671
Types:         51651
Memory used: 560305K
I/O read:      0.03s
I/O write:     0.06s
Parse time:    2.02s
Bind time:     2.48s
Check time:   11.52s
Emit time:     7.49s
Total time:   23.50s

After

> node built/local/tsc.js --diagnostics --p src/compiler/tsconfig.json
Files:           124
Lines:        144298
Nodes:        685510
Identifiers:  274652
Symbols:      151814
Types:         52094
Memory used: 562092K
I/O read:      0.03s
I/O write:     0.06s
Parse time:    2.02s
Bind time:     2.43s
Check time:   11.96s
Emit time:     7.39s
Total time:   23.81s

About 3,000 more symbols and 1% more total time.

Depends on #33885

Fixes #29841

@jablko jablko marked this pull request as ready for review October 8, 2019 23:17
@jablko jablko force-pushed the patch-17 branch 2 times, most recently from b6e11d6 to 59de40a Compare October 16, 2019 14:46
@jablko jablko force-pushed the patch-17 branch 2 times, most recently from f25a970 to 6e6d2e5 Compare November 16, 2019 15:24
@jablko jablko force-pushed the patch-17 branch 5 times, most recently from 7290d04 to 0d849d4 Compare November 28, 2019 14:51
@jablko jablko force-pushed the patch-17 branch 3 times, most recently from fc4b235 to ba11b95 Compare January 25, 2020 20:23
@jablko jablko force-pushed the patch-17 branch 3 times, most recently from eec46f9 to 952463a Compare February 3, 2020 18:25
Copy link
Member

@sandersn sandersn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this PR will be ready until #36554 is complete. Let's hold this until we have enough examples there, because the solution we end up with may look quite different.

@jablko jablko force-pushed the patch-17 branch 4 times, most recently from c85c4b8 to 60b7496 Compare February 10, 2020 20:01
@jablko jablko force-pushed the patch-17 branch 3 times, most recently from 87c8ab5 to 13feab6 Compare February 12, 2020 21:43
@sandersn
Copy link
Member

This PR hasn't seen any activity for quite a while, so I'm going to close it to keep the number of open PRs manageable. I think we should finish the discussion at #36554 before making changes.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Improve typings of Array.map when called on tuples
2 participants