dotnet-campus / dotnetCampus.Ipc

本机内多进程通讯库
MIT License
143 stars 28 forks source link

IpcShapeGenerator processes every syntax tree in the compilation with every call to Execute #97

Closed sharwell closed 1 year ago

sharwell commented 2 years ago

The following code does not use the new IIncrementalGenerator API, which leads to severe performance overhead when attempting to enable the source generator in IDE scenarios.

https://github.com/dotnet-campus/dotnetCampus.Ipc/blob/d8b94a050a138b274b287b5e7e76409ac2dfb88b/src/dotnetCampus.Ipc.Analyzers/SourceGenerators/IpcShapeGenerator.cs#L75-L84

🔗 This issue was originally reported here: https://developercommunity.visualstudio.com/t/Visual-Studio-hangs-and-can-not-cancal-t/10047643

lindexi commented 2 years ago

@sharwell Thank you and we will fix it

walterlv commented 2 years ago

Related documents: