Results 1 to 2 of 2

Thread: Speed of static app

  1. #1
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Speed of static app

    Hello,
    I read at wiki.qtcentre.org
    that the static application "runs slightly slower". To me it is kind of counter-intuitive since I would have said that static is quicker... Anyway, I'd like to know how significant is the speed difference. Any experience to share?
    Thanks

  2. The following user says thank you to jcr for this useful post:

    jpn (8th October 2006)

  3. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Speed of static app

    Hi, you're right. It should be the other way around. Nice to see someone actually reads those articles..

    I'm not a real specialist when it comes to linking matter. As far as I know, it actually only affects the application startup time (assuming that the libraries are loaded at startup, which is not always the case). But anyway, dynamic loading of shared libraries is naturally slower compared to statically linked libraries. The more libraries to load, the more difference can be seen. But this is not a real reason to choose between dynamic and static linking as the drawback is very insignificant.

    By the way, anyone is welcome to take part in writing and updating articles in our very own wiki! And the discussion pages are handy for exchanging thoughts, ideas, problems, errors etc.
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    jcr (6th October 2006)

Similar Threads

  1. Qt libs static and dynamic
    By conexion2000 in forum Installation and Deployment
    Replies: 3
    Last Post: 24th May 2006, 09:09
  2. Problem with libmng on static link
    By jlbrd in forum Installation and Deployment
    Replies: 2
    Last Post: 10th May 2006, 22:38
  3. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  4. Replies: 4
    Last Post: 20th February 2006, 09:11
  5. Replies: 4
    Last Post: 14th February 2006, 21:35

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.