How to speed up the dynamic lib loading?
I make a app based on Qt,but it launch very slow.I think it's the dynamic lib loading that take the most the launch time ,especially load the QtGui lib .I want to preload the Qt libs to memory before the app launch , then my Qt based apps will launch faster ,how can I achieve this ???
Re: How to speed up the dynamic lib loading?
You can use system solutions such as readahead or preload. Or you can make your own version of Qt libraries which doesn't have the functionalities you are not using.
Re: How to speed up the dynamic lib loading?
Quote:
Originally Posted by
wysota
You can use system solutions such as readahead or preload. Or you can make your own version of Qt libraries which doesn't have the functionalities you are not using.
Thanks for your reply.I want some Qt dynamic libs loaded into memory when the system booting ,so the first Qt app can launch fast .Can you explain more in detials how to do this ?
Re: How to speed up the dynamic lib loading?
No, I can't. Type in "readahead" and "preload" into your favourite search engine or simply download and install preload or readahead and read their docs.
Re: How to speed up the dynamic lib loading?
Quote:
Originally Posted by
wysota
No, I can't. Type in "readahead" and "preload" into your favourite search engine or simply download and install preload or readahead and read their docs.
Oh ,I got the detials ,thanks!