autoeventwireup性能开销 [英] autoeventwireup performance cost

查看:133
本文介绍了autoeventwireup性能开销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找提高我的asp.net页面的表现,是否值得从真正改变autoeventwireup为false,并添加事件处理程序或者是性能损失很小?

I have been looking at improving my asp.net page performance, is it worth changing autoeventwireup from true to false and adding the event handlers or is the performance penalty very small?

这是一个asp.net 2.0的项目。

This is an asp.net 2.0 project.

推荐答案

该wireup不是在编译时完成的。它在运行时完成。正如本文中所描述:

The wireup isn't done at compile-time. It's done at runtime. As described in this article:

<一个href=\"http://odeto$c$c.com/Blogs/scott/archive/2006/02/16/2914.aspx\">http://odeto$c$c.com/Blogs/scott/archive/2006/02/16/2914.aspx

有是因为调用createDelegate方法必须作出每次页面被创建时的性能损失。的性能损失可能是微不足道的,但它确实存在

There IS a performance penalty because of the calls to CreateDelegate which must be made every time a page has been created. The performance hit is probably negligible, but it does exist.

这篇关于autoeventwireup性能开销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆