Results 1 to 15 of 15

Thread: Very slow startup by the first run

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Posts
    11
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Very slow startup by the first run

    Hi, I am writing a qt app for an embedded linux platform based on Freescale 5121 PPC core. The Qt version I am using is 4.7.2 static compiled.
    The system boots over network and mounts a rootfs over nfs.

    I made the following tests:
    A small gui app showing only a couple of colored boxes takes over 20 secs to start by the first call. Wenn I quit the app and start it again, it starts instantly.

    My first thought was the long load time over nfs (the staticly linked app is about 11 Megs), so I then copied the app into /tmp, which is mounted as tmpfs, meaning almost no load delays. This also didn't change the above behaviour.

    Switching to dynamic linking didn't help.

    Then I wrote the following app:
    Qt Code:
    1. int main(....)
    2. {
    3. QCoreApplication a(argc,argv);
    4. qDebug() << "test";
    5. return a.exec();
    6. }
    To copy to clipboard, switch view to plain text mode 

    this code ( resulting in about 2 Megs) did also show almost the same behaviour, except the delay was about 15 secs.

    the apps are all release versions with -O2 compiled

    a pure "C" HelloWorld programm with printf does start always instantly.

    Any ideas, what to optimize/change or where to begin looking for the bottlenecks?
    Last edited by high_flyer; 31st August 2011 at 15:50. Reason: code tags

Similar Threads

  1. (GUI) how to run code on program startup
    By qtierer in forum Qt Programming
    Replies: 2
    Last Post: 9th May 2011, 19:15
  2. How can i select a row at startup
    By kosasker in forum Newbie
    Replies: 3
    Last Post: 1st February 2011, 13:25
  3. Qt app in linux startup
    By qtlinuxnewbie in forum Newbie
    Replies: 8
    Last Post: 2nd March 2010, 18:37
  4. QT Creator crashed on startup
    By eloos in forum Qt Tools
    Replies: 13
    Last Post: 20th November 2009, 08:50
  5. QToolBar go away! On startup anyway.
    By bitChanger in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2006, 18:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.