Does UserControls in asp.net degrades performance.
MasterPage has its own life cycle
Page has its own life cycle and
UserControls has its own life cycle.
UserControls helps to divide work load and are easily maintainable, but does UserControls down grades performance of asp.net application?
I’ve never seen them decrease performance, unless you do something foolish like have each user control be responsible for it’s own DB look-up, and then bind them in a Repeater or something like that. If you use common sense, they should not degrade performance noticeably.
If you’re talking optimizing down to the processor cycle, however, I would guess they would not because of how everything gets compiled down to MSIL, and then to Machine code, so I would guess the compiler can sort it out and would treat a user control no differently than if you had all the constituent controls directly on the page.
Edit – added
This article argues for how they can actually improve performance. Interesting.
Good question. Again, I learned something new. Thank you.