在Roslyn中使用编译器API与工作区API时性能差异
我知道罗斯林提供了几种API。但是,我不确定使用编译器API和工作区API时的性能差异是什么。工作区API是否构建了整个解决方案并生成IL代码?
I know that there are several API provided by Roslyn; however, I was not sure what is the difference in performance when using Compiler API and Workspace API. Does Workspace API build the entire solution and generate the IL code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以将工作区API视为助手,只是为了使编译器API对象。因此,它不必手动将所有各种编译器API调用以解析语法树并进行编译,而是为您提供了汇编。它真正做到的有趣的部分是:
The workspace API can be thought of as a helper just to make the Compiler API objects. So rather than having to manually call all the various compiler APIs to parse syntax trees and make Compilations, it does it for you. The interesting bits it really does is: