Skip to content

Incremental builds with .tsbuildinfo-files are not faster than non incremental builds #44305

Closed
@DavidZidar

Description

@DavidZidar

Bug Report

TypeScript version 4.3.2

I am unable to see any measurable performance difference using incremental builds using tsc --noEmit with or without "incremental": true in compilerOptions or the --incremental CLI argument. Builds take the same amount of time before and after the tsconfig.tsbuildinfo is created.

I have tried this in serveral different projects on both Windows and Linux, the results are the same. I also used the performance tracing feature and the flame graphs look pretty much identical with or without the tsbuildinfo file.

One project takes about 14.5 seconds on my machine without incremental build and about 14.5 seconds with incremental.

Another project takes 3.5 seconds on Windows without and 3.5 seconds with. The same project took 3 seconds on Linux without and 3 seconds with.

First flame graph with no tsbuildinfo
image

Second build with tsbuildinfo present
image

🔎 Search Terms

incremental
tsbuildinfo
performance

🕗 Version & Regression Information

  • I was unable to test this on prior versions because limited time

⏯ Playground Link

Not possible.

💻 Code

N/A

🙁 Actual behavior

Incremental builds perform the same as non incremental builds.

🙂 Expected behavior

I expect incremental builds to be at least a little bit faster.

Metadata

Metadata

Assignees

Labels

Domain: --incrementalThe issue relates to incremental compilationDomain: PerformanceReports of unusually slow behaviorNeeds InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions