Results 1 to 3 of 3

Thread: Qt/mingw a lot slower than borland builder 6.0?

  1. #1
    Join Date
    Jul 2009
    Posts
    92
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt/mingw a lot slower than borland builder 6.0?

    I have an application which is a waterbalance model that runs in 300 loops and shows the results in a series of labels on an interface. A button creates and starts the thread that is the model. The model is coded in c++ and I could port it directly to Qt/Mingw using Eclipse, from borland builder c++ 6.0. So the model code is exactly the same.
    The weird thing is that in Borland the model runs in 17 seconds, in Qt 4.6.1 it runs in 26.5 seconds.
    There is one difference though, in Qt the Borland the model is directly called in Qt it is a Qthread, but also if I switch of the interface the runtime is nearly the same (a lot slower than BCB).

    Is the Qthread making the model slower? or is it mingw? Or is this a mingw question? Most of the data is grid based, so a lot of times "for c = 0 to nrcols, for r = 0 to nrRows", could it be that borland does that faster? Both are compiled as debug without optimizations.

    This is with a small database but a larger database may easily be 30 minutes so before I continue in Qt I would like to be sure it is not a lot slower.

    Has anyone experienced this?

    thanks
    Last edited by qt_gotcha; 22nd February 2010 at 09:44.

  2. #2
    Join Date
    Jul 2009
    Posts
    92
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt/mingw a lot slower than borland builder 6.0?

    tried the borland with the thread function, still a loy faster...

  3. #3
    Join Date
    Jul 2009
    Posts
    92
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt/mingw a lot slower than borland builder 6.0? -ffast-math

    I found that the -ffast-math compiler makes a nice difference. My app does liots of calculations like powl, sqrt, log and those are slow in migw, but the fast-math compiler switch changes that, it runs now 20% faster. I am now recompiling the entire qt directory with fast-math activated and optimization to O3. I'll report what that does.

Similar Threads

  1. Replies: 11
    Last Post: 2nd July 2009, 00:41
  2. Replies: 4
    Last Post: 7th March 2009, 09:06
  3. why Qt4 is so slower than Qt3 ?
    By xuyaojun1980 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 11th February 2009, 18:32
  4. Calculator Builder Example
    By janus in forum Newbie
    Replies: 1
    Last Post: 19th April 2008, 09:23
  5. Qt us Builder and Delphi
    By zlatko in forum General Discussion
    Replies: 3
    Last Post: 8th May 2006, 09:08

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.