The extra work done in #34789 is valuable, but maybe it doesn't need to be so expensive.
Setup:
- Clone https://github.com/amcasey/material-ui.git
- Check out Benchmark
yarn to restore packages
yarn typescript to prebuild and run some TS tests
Repro
tsc -p docs
On a random Mac Mini:
- 10-run avg on 7d77ecb: 35,482ms
- 10-run avg on 28050d5: 35,908ms (1% slower)
Note: to build old TS commits, you probably need to change const { default: chalk } to const chalk in scripts/build/utils.js.
The extra work done in #34789 is valuable, but maybe it doesn't need to be so expensive.
Setup:
yarnto restore packagesyarn typescriptto prebuild and run some TS testsRepro
tsc -p docsOn a random Mac Mini:
Note: to build old TS commits, you probably need to change
const { default: chalk }toconst chalkinscripts/build/utils.js.