Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Performance improvement while integrating static libraries vs dynamic libraries
Forum Updated to NodeBB v4.3 + New Features

Performance improvement while integrating static libraries vs dynamic libraries

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 834 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I have project in which I have statically compiled memory manager and have dynamically linked QT libraries . the suggestion is is to enable static linking of all QT code into executable, thus facilitating statically compiled memory manager used static linking of all QT code as this will lead to performance improvement in runtime

    Can some one tell me what is reason the when statically compiled memory manager uses static linking of all QT code then it will lead to runtime improvment

    jsulmJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      I have project in which I have statically compiled memory manager and have dynamically linked QT libraries . the suggestion is is to enable static linking of all QT code into executable, thus facilitating statically compiled memory manager used static linking of all QT code as this will lead to performance improvement in runtime

      Can some one tell me what is reason the when statically compiled memory manager uses static linking of all QT code then it will lead to runtime improvment

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Qt-Enthusiast I really doubt there is a big difference in runtime performance between static and dynamic linking. The startup time of a statically linked application can be shorter, but after startup there will be no difference.
      I don't know what this "statically compiled" memory manager is and how it is related to Qt.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        The reason to use static or dynamic loading has nothing to do with performance.

        Its to allow code reuse/modules or to make deployment easier. ( single exe)

        As @jsulm says, once the lib has been loaded and resolved, then
        the execution speed is the same.

        if you have tons and tons of libs. then if u use dynamic loading (on demand) it could be faster
        to load that fat static linked.
        But since we talk in MBs here,
        the actual difference will be very small in miliseconds.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved