Skip to content

[3.6.3] tsc --watch extremely slow (regular tsc compiles fine). #34916

Closed
@canonic-epicure

Description

@canonic-epicure

For my codebase, compilation with --watch is extremely slow and sometimes results in the out-of-memory segfault. Compilation w/o --watch take 4s.

Can be reproduced in this repo: https://github.com/bryntum/chronograph/ (publicly available, branch quark_master, revision c58bc18120021423c730c9c2287058066157b8fa).

I found a similar issue, #34119 and tried few recommendations from it. Notably, tried to enable

        "declaration"               : true,
        "emitDeclarationOnly"       : true,

which produced 251 compilation errors. W/o those options all compiles fine.

It seems the incremental compilation uses some different data structures, than normal compilation. Or, may be, the serialization format is incorrect.

Metadata

Metadata

Labels

Fix AvailableA PR has been opened for this issueNeeds More InfoThe issue still hasn't been fully clarifiedRescheduledThis 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