language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

(perf) WIP: TS incremental parsing

Open dummdidumm opened this issue 4 years ago • 0 comments

Implement getChangeRange of the ScriptSnapshot interface so TS can incrementally parse the result of svelte2tsx. TODO:

  • ~Doesn't reliably work, gets into a broken state seemginly random after some time~ Update: Found a bug in the implementation, works now
  • Wasn't able to prove this is really faster (how to best test this?). Update: Tested this with VS Code's Dev Tools and it doesn't change much. It's about 2-5miliseconds that are saved, which feels like very little. @jasonlyu123 thoughts?

dummdidumm avatar Oct 03 '21 09:10 dummdidumm