8000 Emit time of the same incremental change differs in different scopes · Issue #14965 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Emit time of the same incremental change differs in different scopes #14965
@wclr

Description

@wclr

TypeScript Version: 2.2.1

I have the following case:

tsc -w compiles and watches one folder X, and I change there one source file, incremental compilation diagnostics is:

Files:           90
Lines:        38318
Nodes:       165801
Identifiers:  58160
Symbols:      44386
Types:         1900
Memory used: 81376K
I/O read:     0.01s
I/O write:    0.04s
Parse time:   0.77s
Bind time:    0.00s
Check time:   0.14s
Emit time:    0.25s
Total time:   1.16s
11:32:24 AM - Compilation complete. Watching for file changes.

tsc -w has wider scope, compiles and watches the same folder X and also a few other folders with sources, diagnostics of the same operation (one file in the folder X changed)

Files:           246
Lines:         51949
Nodes:        211418
Identifiers:   72403
Symbols:       83205
Types:         15831
Memory used: 156732K
I/O read:      0.01s
I/O write:     0.13s
Parse time:    0.87s
Bind time:     0.01s
Check time:    1.35s
Emit time:     1.11s
Total time:    3.35s
11:32:26 AM - Compilation complete. Watching for f

Actually amount of file emitted (which is one file in the case) is (at least should be) the same in both cases, I wonder why Emit time: 1.11s differs so much (vs 0.25s in the first case) ? Not sure aslo why Check time (1.35s vs 0.14s) differs much too.

I have skipLibCheck and skipDefaultLibCheck disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0