c# - .NET: Windows forms/controls performance -


we have application heavy ui. our clients started complaining application startup performance. (previously our controls/forms initialized while kind of splash screen message 'starting' shown).

i've made research , found control's initializecomponent() (which generated vs designer) method call can take ~0.4-0.5s complex controls. , there lot of such controls, i'm getting ~10-15 seconds of application startup time result. there nothing heavy there, controls initialization (for example, different toolstrips, toolstripbuttons, menustrips initialization, setup of different texts etc).

is there way improve performance of controls initialization in case? maybe kind of caching or smth (so our application start during first load)?

p.s. we're using .net 2.0

thanks in advance.

you indicate you've performed @ least rudimentary analysis of app's start-up time, have thoroughly profiled app using visual studio's profiler, ants or similar?

thoroughly profiling of app give accurate break-down of app spends time. less , you're guessing.

you might consider ngen'ing portions of app , re-profiling app's start-up times determine whether ngenning of code delivered performance boost.

however, if you've built that's complex, may asking of users' machines. why it's vital measure performance of code on tin that's similar possible end-users' hardware , environment.

another thing consider winforms doesn't take advantage of modern-day hardware accelerated graphics. may find porting wpf gives boost need, sure prototype , profile before committing significant resources path.

hth.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -