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. Slow load from CD or DVD
Qt 6.11 is out! See what's new in the release blog

Slow load from CD or DVD

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 4.0k Views 1 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    Do you load Qt dynamically? I would suspect it takes the OS a lot of time to load QtCore and - especially - QtGui. 2 things that might help here are:

    • make sure to deploy Qt release dlls (they are much, much smaller in size)
    • try to make them reside close to the application, so that CD/DVD head does not need to jump around too much

    Alternatively, you can compile statically just to be sure.

    (Z(:^

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #3

      Well, The DVD/CD is much much much slower in operation then a HDD! It always is. So when having a complete program on a CD is will be hard to load into memory before execution. As sierdzio says is very much so. Make the program as small as possible by using the dynamic linked methode and copy the used dll's into the program dir on the CD. That might do the trick.
      Greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • D Offline
        D Offline
        ddolby
        wrote on last edited by
        #4

        All the DLLs are in the same directory as the program, and the program is only 81KB so it is pretty small already. I am going to try the static compile option.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          ddolby
          wrote on last edited by
          #5

          I built Qt statically, and statically linked my app against it, and it didn't seem to make much difference.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DerManu
            wrote on last edited by
            #6

            something is not right here. An 81 KiB file on CD should be loaded into memory nearly instantly. Even the ~12 MiB of the Qt so's should be in memory in no time.

            Is it a modern CD drive (52x or something like that?), does other data of that magnitude copy fast to your HDD?

            1 Reply Last reply
            0
            • D Offline
              D Offline
              ddolby
              wrote on last edited by
              #7

              Yes this has been run on a few different machines. All either i5 or i7 machines with modern DVD and Blu-Ray drives.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                ddolby
                wrote on last edited by
                #8

                Another strange behavior that is being is seen is the first time run from the DVD or CD there is a crash when you exit the application, but if you launch the application again,leaving the disc in and exit there is no crash.

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  ddolby
                  wrote on last edited by
                  #9

                  the crash was unrelated to this slowdown. I have resolved the crash.

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    huajin
                    wrote on last edited by
                    #10

                    do you have resolved the problem?

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      huajin
                      wrote on last edited by
                      #11

                      i have the same problem, can you help me?

                      1 Reply Last reply
                      0

                      • Login

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