在页面上使用说10个用户控件与在显示相同数据但没有用户控件的页面上使用10个用户控件时,性能是否有所不同?
Of course a clean design with lots of object and classes suffers from performance
However, given today hardware cost..... I don't care
I can fix the problems of a good design with more hardware, but there is no hardware to fix a bad design ;)
So use as many user controls as you want
A usercontrol is just another object. It might use a little more memory and a bit more time(because the object needs to be placed in memory to be used), but I guess they are so small that it will make no difference in performance.
使用用户控件需要付出一定的代价,但可以忽略不计,其收益远远超过了成本。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.