Obsidian icon indicating copy to clipboard operation
Obsidian copied to clipboard

Make source generators incremental

Open Seb-stian opened this issue 3 years ago • 0 comments

[...] the source generator will not scale to large projects without migration to the v2 (incremental) API. -.NET Team

SyntaxReceiver walks through all syntax trees every time source generators are invoked, which is VERY often. This can lead to a very bad development experience, your IDE may even hang. This problem occurs with larger repositories, which Obsidian is going to be at some point. The new APIs solve this performance problem.

Seb-stian avatar Dec 23 '21 13:12 Seb-stian