@ServiceHost调试="真"

编程入门 行业动态 更新时间:2024-10-27 23:16:26
本文介绍了@ServiceHost调试="真" - 性能损失?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有没有在SVC文件设置调试=真的性能损失?它是足够的显著,以保证在生产环境中,它设置为假?

Is there a performance penalty of setting Debug="true" in the svc file? Is it significant enough to warrant setting it to "false" in a production environment?

%@ ServiceHost Language="C#" **Debug="true"** Service="AwesomeService" %>

感谢

推荐答案

在你的SVC的文件,如果你写你的服务为在线 code或实施服务 APP_ code 文件夹,使调试模式下,它会影响性能

In your ".svc" file, if you are writing your service as inline code, or implementing service in "App_Code" folder and enabling debug mode, it will impact the performance.

一般情况下,始终设置调试=假您部署到生产环境之前。如果启用了调试模式,应用程序的性能会降低。

Generally, always set debug="false" before you deploy to production. If debug mode is enabled, the performance of your application can be decreased.

在发行模式下,调试符号不烤成的组装,因此   使用Visual Studio .NET或其他来源的code不能调试它   调试器。什么是酷的是,code为在此也进行了优化   建立操作。

In Release mode, the debug symbols are not baked into the assembly, so you cannot debug it using Visual Studio .NET or other source code debuggers. What's cool is that the code is also optimized during this build operation.

更多推荐

@ServiceHost调试="真"

本文发布于:2023-11-25 14:25:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630118.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ServiceHost   QUOT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!