Initial build mode build emits twice #43995
Labels
Domain: Performance
Reports of unusually slow behavior
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
From #42173 (comment)
In the course of investigating #42173, I noticed that a clean build of the largest project spent 50 seconds on emit. I picked out the slowest files and noticed that each occurred twice. It turns out that
updateShapeSignature
triggers a separate emit from the real one (fortunately, with no file writing), which accounts for 22 seconds of the emit time. Note that this was with TS 4.2 - 4.3 skips signature computation on a clean build.It seems like we could potentially realize a very significant perf win if we could combine the two emit passes. I believe @sheetalkamat has already been thinking about ways to do this.
The text was updated successfully, but these errors were encountered: