Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: improve overall typescript performance #435

Merged
merged 2 commits into from
Jun 3, 2020

Conversation

piotr-oles
Copy link
Collaborator

@piotr-oles piotr-oles commented Jun 3, 2020

Aside from general performance improvements, I added a profile option to be able to measure timings and compare them with other tools, like tsc.

BREAKING CHANGE: 🧨 Changed default TypeScript compiler options to incremental: true and
the default mode to write-tsbuildinfo

Related:
vercel/next.js#13529 (comment)

Results:
I was testing it on my personal project. With incremental: true mode, the initial compilation time dropped from ~100s to ~30s (faster than initial webpack compilation). The incremental compilation time dropped from ~15s to ~2s.

Aside from general performance improvements, I added a `profile` option
to be able to measure timings and compare them with other tools, like
tsc.

BREAKING CHANGE: 🧨 Changed default TypeScript compiler options to incremental: true and
default mode to write-tsbuildinfo
@piotr-oles piotr-oles merged commit 944e0c9 into alpha Jun 3, 2020
@piotr-oles piotr-oles deleted the feature/improve-performance branch June 3, 2020 18:04
@piotr-oles
Copy link
Collaborator Author

🎉 This PR is included in version 5.0.0-alpha.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

@piotr-oles
Copy link
Collaborator Author

🎉 This PR is included in version 5.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@piotr-oles
Copy link
Collaborator Author

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants