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

问题描述

能掌握页面增加应用程序的性能在加载时间的情况下,或者仅仅是重复使用的设计和制作的一致性。还是有它的开销(需要时间),而执行的事件为内容页和母版页。

Can master pages increase performance of the application in case of loading time or it is just to reuse the design and making consistency. Or has it overhead(taking time) while events execution for both the content page and master page.

推荐答案

这是设计的重用,使一致性。

It is for the reuse of the design and making consistency.

与母版页和其他控件,以及所有依赖完整的页面,使得最小的开销,这是如此之小,也许1-2毫秒,因此没有理由去谈论它。

The full page with the master page and the other controls, and all the dependencies, makes a minimal overhead which is so small, maybe 1-2 millisecond, therefore there is no reason to talk about it.

我现在检查我的最大的页面,有87个依赖*,它需要70ms的启动显示,个个都是数据库的成本,而且由于依赖的不是。

I check now my biggest page, have 87 dependencies* , and it takes 70ms to start showing, all of them are database cost, and not because of the dependencies.

[*]一个主人,一个页面,其余的自定义控件,我看到在临时文件夹中已编译的版本并没有显示一条线。

[*] one master, one page, and the rest custom controls, I see the compiled version on the temporary folder and there is a line that shows that.

这篇关于母版页和性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 05:59