【问题标题】:Can sgen.exe be used for web.config file to improve performance and cold start?sgen.exe 可以用于 web.config 文件以提高性能和冷启动吗?
【发布时间】:2011-08-01 11:22:26
【问题描述】:

.NET 冷启动是一个已知问题,它表示首次加载 ASP.NET 网站所需的时间,包括 DLL 加载、JIT 编译、w3wp.exe 创建和其他内容。

对web.config文件使用sgen.exe对冷启动有改善作用吗?

更根本的是,我们可以在 web.config 上使用这个工具吗?如果可以,如何使用?

【问题讨论】:

    标签: asp.net iis web-config cold-start


    【解决方案1】:

    我不得不说不。 .config 文件由 config api 处理,因此在它们上使用 sgen 后,api 将不知道如何使用您编译的代码。

    您最好查看 aspnet_compiler.exe 来预构建站点。这将对冷启动延迟产生更大的影响。

    西蒙

    【讨论】:

      猜你喜欢
      • 2011-08-25
      • 2017-06-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多