The extra work done in #33050 and follow-up PR #33678 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:
For #33050
- 10-run avg on 4ee251b: 33,685ms
- 10-run avg on 250d5a8: 34,223ms (2% slower)
For #33678
- 10-run avg on 7f3c03d: 34,403ms
- 10-run avg on 7ce793c: 35,488ms (3% 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 #33050 and follow-up PR #33678 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:
For #33050
For #33678
Note: to build old TS commits, you probably need to change
const { default: chalk }toconst chalkinscripts/build/utils.js.