Results 1 to 5 of 5

Thread: Strange - Program faster from Qt Creator?

  1. #1
    Join Date
    Sep 2009
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Strange - Program faster from Qt Creator?

    I have experienced an unexpected behavior... My software (using extensive network transfers, database (SQLite) and file writing is much faster when started from the IDE than standalone.
    The workflow is more less like this - the network socket connection is established, objects of data are received, checked for existence in the database and written to file(s).
    For example, the operation which takes one minute when started from Creator takes almost two minutes when started standalone. The case when the data is re-transmitted is especially strange (when no database is updated). For the same example it takes less then 10 sec. from the IDE and more than a minute standalone.
    I somehow expected the program to be a bit slower from the IDE....

    I'm using 4.7.0 on Ubuntu 10.4, 64bit, Release build.

    Anyone having such experience?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Strange - Program faster from Qt Creator?

    Do you use threads?

  3. #3
    Join Date
    Sep 2009
    Posts
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Strange - Program faster from Qt Creator?

    Not explicitly - I'm not using QThread class. The part of the software doing the actual job is in a external library (dcmtk) but from what I have seen the actual operations are blocking (no event processing during the operations) - if this helps.

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Strange - Program faster from Qt Creator?

    There you go, if you see library operations are blocking, then you have a potential suspect for your observations

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

    Default Re: Strange - Program faster from Qt Creator?

    Are you sure it is not the case that you run the release version under the IDE and debug version as standalone? The only thing that might make your application speed differ is if you output a lot of messages to the console.
    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.


Similar Threads

  1. Replies: 2
    Last Post: 30th October 2010, 15:15
  2. Replies: 1
    Last Post: 26th September 2010, 02:45
  3. Replies: 2
    Last Post: 6th September 2010, 14:22
  4. Qt Creator Strange behavior of GDB in Creator 1.3
    By rayjc in forum Qt Tools
    Replies: 1
    Last Post: 11th March 2010, 21:42
  5. QT Creator, cross platform program.
    By kazek3018 in forum Newbie
    Replies: 8
    Last Post: 20th December 2008, 23:13

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
  •  
Qt is a trademark of The Qt Company.