Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to create a user control in Visual Studio 2013.

From performance point of view, creating a user control at design time is feasible or creating user control at run time is feasible?
Posted
Comments
Herman<T>.Instance 2-Jul-15 5:39am    
why don't you create 2 controls and check the differences? If the are awesome, write a blog, an article or a tip about it and share your thoughts

1 solution

There is no difference, since you have to do the same thing in runtime mode as the compile time (the same code gets run).

There is a possibility of JIT optimizations for compile time execution but if you create a lot of controls at runtime the JIT will do the same anyway.
 
Share this answer
 
Comments
yash35 2-Jul-15 10:11am    
Thanks Mehdi for reply...I thought if control alignments and properties assignment happens at design time we could achieve some better performance

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900