开发者

Is there any performance overhead if I use a lot of <%@ Register directives on markup?

开发者 https://www.devze.com 2023-02-22 01:20 出处:网络
Some of my pages have a lot of <%@ Register directives for controls that are no longer used neither on markup nor dynamically created.

Some of my pages have a lot of <%@ Register directives for controls that are no longer used neither on markup nor dynamically created.

I'm wondering if I would benefit or gain some performance if I bother on removing开发者_StackOverflow社区 all those directives from all pages. Thanks for the answers.


There will be some overhead from parsing the directives (especially on first load as the temporary classes are generated), though as you do not use the controls this would be minor.

This is something you can test for yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消