We have a medium sized application that depends on several usercontrols, namely:
A tablelayout panel, with 2x5 grid of usercontrols, with 3+ levels of inheritance. A big issue we're running into with our application has proven to be startup time (both cold\warm), one of the big big hangups we're getting is initializing this usercontrol grid.
From our timing reports, this form comes in at about 0.75 seconds for initialization, and cutting this down would be a big deal.
My question is: What the heck can I do to speed this up? Whenever I run timing checks on similar-complexity InitializeComponents (all windows, .net controls), the result is magnitudes less (<10 milleseconds) sometimes.
edit) I'm wondering if things like marking my final classes sealed or something similar would help.
edit2) I've looked deeper into the timing of initializecomponent, and for my current machine, The main container adds 10 components to it (at 10ms a piece). Each of those components adds 3 components (at 10ms a piece). 10x10 + 30x10 = 700ms. Unless I can increase the speed at which items get added to their containers, I think I'm SOL.