daveoftheparty / speedy-moq

Generate boilerplate code for Moq in C#
MIT License
1 stars 0 forks source link

perf: compilation time #15

Closed daveoftheparty closed 3 years ago

daveoftheparty commented 3 years ago

In the sample generated code I produced in issue #13

it took something like 11 seconds to build all the projects. (You can see the log as an attachment to issue #14 )

'm not 100% sure that I need to perform the project.Build() in InterfaceStore to get to the reference projects, but I got lost looking in the massive tree of the Buildalyzer.AnalyzerManager.GetPRoject result. We need that to call project.AddToWorkspace, so, if there is any way we can read the proj reference there, we may or may not speed up the compilation.