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. Might Qt subsystem initialization time depend on compiler optimization level?

Might Qt subsystem initialization time depend on compiler optimization level?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 193 Views
  • 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.
  • A Offline
    A Offline
    Andreas Schacherbauer
    wrote on last edited by
    #1

    Hi,
    Could it be that Qt subsystem initialization (font rendering for example) performance depend on the compiler optimization level that was used during the Qt build?
    Or are there other ways to improve the performance of e.g. setting up font rendering?

    I'm asking this because we have a binary that was build with an older version of Qt (probably 5.10.x) which initializes font rendering 4x faster then if we build the same version of Qt ourselves.

    Best regards,
    Andi

    kshegunovK 1 Reply Last reply
    0
    • A Andreas Schacherbauer

      Hi,
      Could it be that Qt subsystem initialization (font rendering for example) performance depend on the compiler optimization level that was used during the Qt build?
      Or are there other ways to improve the performance of e.g. setting up font rendering?

      I'm asking this because we have a binary that was build with an older version of Qt (probably 5.10.x) which initializes font rendering 4x faster then if we build the same version of Qt ourselves.

      Best regards,
      Andi

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @Andreas-Schacherbauer said in Might Qt subsystem initialization time depend on compiler optimization level?:

      Could it be that Qt subsystem initialization (font rendering for example) performance depend on the compiler optimization level that was used during the Qt build?

      Absolutely.

      Or are there other ways to improve the performance of e.g. setting up font rendering?

      For production use the most optimized build you can muster.*
      For development, you might want to have a debug build.

      I'm asking this because we have a binary that was build with an older version of Qt (probably 5.10.x) which initializes font rendering 4x faster then if we build the same version of Qt ourselves.

      Is it the same compiler? Do you enable the same sort of optimizations? For example, do you see -march=native or -mavx2 or stuff like this? It may very well be that the prebuilt version is well optimized for the hardware, while yours may not be.

      * Except in some niche cases (e.g. you may use a release build with debug information to track a bug or profile a piece of code)

      Read and abide by the Qt Code of Conduct

      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