Results 1 to 3 of 3

Thread: Using QT libraries means slower perfomance ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question Using QT libraries means slower perfomance ?

    If I use QString methods, my program are going to be slower that if I use String STL lib ?
    Thanks

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

    Default Re: Using QT libraries means slower perfomance ?

    QString will be in many cases a bit slower than std::string because it operates on Unicode strings and not 8-bit strings but in other cases it will be faster because of better algorithmics and API. So the bottom line is that it depends on the usecase.
    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.


  3. #3
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using QT libraries means slower perfomance ?

    That's a great way of entering a Qt community :->

    I recommend to optimize for performance only, where it matters. If something scales with the input and there is something to gain from a performance boost.

    That is rarely going to be string handling. I just wrote a small qt application reading all my source code/text files into memory and make them searchable. With hundreds of MBytes of QStrings this is still blazing fast. I qCompress'ed them in memory to keep memory usage acceptable, because obviously otherwise Unicode blows everything up quite a bit.

    Otherwise optimize code readability. That will leave you more time to do important stuff.

    Joh

Similar Threads

  1. QTableView perfomance 2
    By hml in forum Newbie
    Replies: 6
    Last Post: 28th March 2010, 22:51
  2. 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
  3. what`s means this Error Message?
    By blm in forum Qt Programming
    Replies: 2
    Last Post: 15th September 2008, 16:58
  4. signals means protected and what does slots mean
    By babu198649 in forum Qt Programming
    Replies: 1
    Last Post: 27th November 2007, 09:16
  5. QTime private member mds means what?
    By jamadagni in forum Qt Programming
    Replies: 2
    Last Post: 24th March 2006, 18: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.