Skip to content

Initial build mode build emits twice #43995

Closed
@amcasey

Description

@amcasey

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.

Metadata

Metadata

Assignees

Labels

Domain: PerformanceReports of unusually slow behaviorFix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions