How to increase the startup speed of the delphi app?

前端 未结 11 1951
醉梦人生
醉梦人生 2020-12-24 09:54

What do you do to increase startup speed (or to decrease startup time) of your Delphi app?

Other than application specific, is there a standard trick that always wor

11条回答
  •  醉梦人生
    2020-12-24 10:45

    Try doing as little as possible in your main form's OnCreate event. Rather move some initialization to a different method and do it once the form is shown to the user. An indicator that the app is busy with a busy mouse cursor goes a long way.

    Experiments done shows that if you take the exact same application and simply add a startup notification to it, users actually perceive that app as starting up faster!

    Other than that you can do the usual things like exclude debug information and enable optimization in the compiler.

    On top of that, don't auto create all your forms. Create them dynamically as you need them.

提交回复
热议问题