Results 1 to 5 of 5

Thread: QTL: Debug build faster than release build?

  1. #1
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QTL: Debug build faster than release build?

    I am working on some lengthy algorithms, which basically read a file in, process its ocntent, and write the results back to another file.
    For a given file x, which is use for testing, the debug build took 6 seconds to completely process the file.
    I was happy with this result, compiled it in release mode - and the same code with the same file took 9 seconds.

    DId a full recompile of the whole projekt - same.

    In the algorithm, i make heavy use of the QTL (specifically QMap, QVector, QMultiMap), and this is the only thing i can think of that might be causing all this through some black magic.

    As i said, it's a lengthy pice of code, and i was not able to pin it down to a specific line or area. Though i will continue to try.

    Any ideas on this?

    IDE: VS2008ProSP1 + qt plugin
    Qt: 484
    hw: i7 + 8gig ram
    Last edited by tuli; 17th March 2013 at 21:31.

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


  3. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTL: Debug build faster than release build?

    Are you asking about compilation time or execution time?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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


  5. #3
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTL: Debug build faster than release build?

    Execution time. Poor wording on my part, sorry.

  6. The following user says thank you to tuli for this useful post:


  7. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTL: Debug build faster than release build?

    To suggest an explanation I'd have to see your code with a trustworthy benchmark approach (taking into consideration things such as data cache).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. The following user says thank you to wysota for this useful post:


  9. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTL: Debug build faster than release build?

    Run the algorithm 2 times and keep track of the time it takes to do each loop through the file. If the data are being cached, the second pass should be faster than the first.

    What happens if you run the debug and release versions *outside* of the development environment? (i.e., run them each from the command line).

  10. The following user says thank you to d_stranz for this useful post:


Similar Threads

  1. Replies: 2
    Last Post: 3rd October 2011, 23:04
  2. Compile Qt 4.6.2 with VS2008 - exception in release build, debug ok
    By LynneV in forum Installation and Deployment
    Replies: 0
    Last Post: 7th June 2010, 04:52
  3. Replies: 3
    Last Post: 3rd December 2009, 16:12
  4. Dialog executes in debug build but not release
    By awhite1159 in forum Qt Programming
    Replies: 5
    Last Post: 24th June 2008, 17:51
  5. build debug with shared and release with static?
    By Thor28 in forum Qt Programming
    Replies: 4
    Last Post: 14th April 2008, 22:32

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.