Results 1 to 4 of 4

Thread: QQueue vs STL queue

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QQueue vs STL queue

    Hi,
    has someone ever compared the performance of the two queues?
    Do you think it's worh investigating or I can expect the same performance?
    thanks in advance
    bye

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QQueue vs STL queue

    Unfortunately, I don't have any exact results on their performance, but the fact that QQueue is an implicitly shared class can have some serious impact on overall performance in real life applications...
    J-P Nurmi

  3. #3
    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: QQueue vs STL queue

    QQueue is a QList which is a bit smarter than the stl list in most cases, so at least in some situations I expect it to be much faster than the STL implementation.

  4. #4
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QQueue vs STL queue

    Have a look at the benchmarks here: http://www.folding-hyperspace.com/program_tip_14.htm

    The list comparison is telling. Qt is very fast here.

  5. The following 3 users say thank you to pherthyl for this useful post:

    jpn (8th November 2007), MarkoSan (9th November 2007), ucntcme (17th November 2007)

Similar Threads

  1. Event Queue Question
    By TheGrimace in forum Qt Programming
    Replies: 10
    Last Post: 5th October 2007, 16:55
  2. Replies: 6
    Last Post: 21st September 2007, 13:51
  3. QThread and QQueue
    By qball2k5 in forum Qt Programming
    Replies: 19
    Last Post: 15th August 2006, 16:32
  4. Cannot queue...
    By vratojr in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2006, 15:06
  5. Cannot queue arguments of type 'QStringList'
    By vfernandez in forum Qt Programming
    Replies: 2
    Last Post: 19th April 2006, 20:48

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.