(perf) WIP: TS incremental parsing

#1192

Pull request

Draft
D
dummdidumm
Oct 3, 2021, 9:20 AM

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?

Info

Assignees None
Reviewers None
Labels None
Milestone None