Skip to content

[code-infra] Port codebase to use tsgo#22826

Draft
brijeshb42 wants to merge 2 commits into
mui:masterfrom
brijeshb42:tsgo
Draft

[code-infra] Port codebase to use tsgo#22826
brijeshb42 wants to merge 2 commits into
mui:masterfrom
brijeshb42:tsgo

Conversation

@brijeshb42

@brijeshb42 brijeshb42 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Ports the codebase to use tsgo for type checking.

CI typecheck speedup

Measured on the test_types CircleCI job, step "Tests TypeScript definitions":

Branch Typecheck time
This PR (tsgo) ~55s
master (typical) ~180–195s

Roughly 3.5× faster typechecks on CI (up to ~5× vs. slower master runs).

CI credit cost

This PR bumps test_types to xlarge.gen2 (48 credits/min); master runs on large.gen2 (24 credits/min). CircleCI bills per-second on whole-job wall-clock.

Resource Wall-clock Credits
master large.gen2 (24/min) ~260s ~104
This PR (tsgo) xlarge.gen2 (48/min) ~105s ~84
Saved per run ~155s ~20 (~19%)

Faster end-to-end (~2.5×) and still ~19% cheaper per run despite the larger box.

@brijeshb42 brijeshb42 added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Jun 16, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22826--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 1,845.77 ms -53.05 ms(-2.8%) | Renders: 63 (+0)

Test Duration Renders
LineChart with big data amount (with marks) 94.49 ms 🔺+17.23 ms(+22.3%) 2 (+0)
BarChartPro with big data amount 45.75 ms 🔺+8.01 ms(+21.2%) 2 (+0)
Area chart with big data amount (no marks) 26.41 ms 🔺+4.57 ms(+21.0%) 2 (+0)
ScatterChartPro with big data amount and zoomed in (batch renderer) 11.71 ms 🔺+3.65 ms(+45.3%) 2 (+0)
BarChart stacked with multiple series 101.55 ms ▼-27.20 ms(-21.1%) 2 (+0)

…and 2 more (+19 within noise) — details

Metric alarms

Test Metric Change
ScatterChartPro with big data amount and zoomed in (batch renderer) bench:paint 🔺 +4.87 ms

Check out the code infra dashboard for more information about this PR.

Comment thread pnpm-workspace.yaml
minimumReleaseAgeExclude:
- '@mui/*'
- '@base-ui/*'
- '@typescript/native-preview*'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Temporary change.

@brijeshb42 brijeshb42 force-pushed the tsgo branch 3 times, most recently from 70baa71 to cee441c Compare June 16, 2026 17:04
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 16, 2026
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant