如何提高delphi应用程序的启动速度? [英] How to increase the startup speed of the delphi app?

查看:164
本文介绍了如何提高delphi应用程序的启动速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



除了特定应用程序之外,是否有一个标准的技巧,总是作品?



注意:我不是在说快速算法或者喜欢的。

解决方案

尽量少做在主窗体的OnCreate事件中。相反,将一些初始化移动到不同的方法,一旦向用户显示该表单,就执行此操作。应用程序忙碌的鼠标光标的指示灯很长一段时间。



完成的实验表明,如果您采用完全相同的应用程序,只需将启动通知添加到它,用户实际上感觉到应用程序启动更快!



除此之外,您可以在编译器中执行常规操作,例如排除调试信息并启用优化



除此之外,不要自动创建所有表单。根据需要,动态创建


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 works?

Note: I'm not talking about fast algorithms or the likes. Only the performance increase at startup, in terms of speed.

解决方案

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.

这篇关于如何提高delphi应用程序的启动速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆