You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tsc --watch --incremental recompiles are too slow for use with VS Code source #33329
changed the title [-]tsc --watch --incremental to slow for building VS Code[/-][+]tsc --watch --incremental recompiles are too slow for use with VS Code source [/+]on Sep 9, 2019
While tsc does it mostly for all files since they could be affected.
Instead of linkedList I changed C:\github\vscode\src\vs\editor\browser\view\viewImpl.ts to change removeOverlayWidget to just OverlayWidget and the time is around 6s.
You will notice in most cases the time would be in checking than emitting and that accounts for the time spent in rescanning semantic diagnostics for files that could be impacted because signature of the file changed.
Max Heiber (@mheiber) Please share a repro so we can investigate it, Also please create separate issue for that since this is tracking vscode's issue of rebuild taking longer which happens to be working as intended at moment but we are still thinking about what can be done here.
Activity
[-]tsc --watch --incremental to slow for building VS Code[/-][+]tsc --watch --incremental recompiles are too slow for use with VS Code source [/+]mheiber commentedon Sep 18, 2019
Matt Bierner (@mjbvz) I'd be curious if we're bumping into the same issue with version 3.6.2 as us.
The issue we're seeing is not related to
--watch.If I understand correctly,
--incrementaldoes not seem to do incremental compilation in v3.6.2:Stats for a codebase with ~9K CLOC:
v3.4.5 and v3.5.3 with --incremental
3.6.2 with --incremental
sheetalkamat commentedon Sep 19, 2019
From email chain::
tsc handles scenario where you might introduce errors through indirect import change where as gulp-tsb doesn't (which at that point was intentional`.
You can indirectly introduce error or fix it even if the signature of middle dependency doesn’t change .. eg look at tests in https://github.com/microsoft/TypeScript/blob/master/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts
The gulp tsb is rescanning diagnostics only for (apart from linkedList.ts)
While tsc does it mostly for all files since they could be affected.
Instead of linkedList I changed
C:\github\vscode\src\vs\editor\browser\view\viewImpl.tsto changeremoveOverlayWidgetto justOverlayWidgetand the time is around 6s.You will notice in most cases the time would be in checking than emitting and that accounts for the time spent in rescanning semantic diagnostics for files that could be impacted because signature of the file changed.
mheiber commentedon Sep 20, 2019
We're seeing no speedup from
--incrementalin 3.6 #33329 (comment), it looks like the state from the .tsbuildinfo file isn't being used.sheetalkamat commentedon Sep 20, 2019
Max Heiber (@mheiber) Did you try typescript@3.6.3?
mheiber commentedon Oct 3, 2019
Sheetal Nandi (@sheetalkamat) I found the same with typescript@3.6.3. Tested on both Windows 10 and Linux. Sorry for the late reply.
sheetalkamat commentedon Oct 3, 2019
Max Heiber (@mheiber) Please share a repro so we can investigate it, Also please create separate issue for that since this is tracking vscode's issue of rebuild taking longer which happens to be working as intended at moment but we are still thinking about what can be done here.
mheiber commentedon Oct 4, 2019
Thanks Sheetal Nandi (@sheetalkamat) . I added steps to reproduce to an existing issue for --incremental not speeding up compilation: #33667
Add noIndirectImports as a option to skip checking and generating .d.…
Add noIndirectImports as a option to skip checking and generating .d.…
Add assumeChangesOnlyAffectDirectDependencies as a option to skip che…