PDA

View Full Version : QQueue vs STL queue



Lele
8th November 2007, 11:37
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

jpn
8th November 2007, 13:28
Unfortunately, I don't have any exact results on their performance, but the fact that QQueue is an implicitly shared class (http://doc.trolltech.com/latest/shared.html) can have some serious impact on overall performance in real life applications... ;)

wysota
8th November 2007, 17:31
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.

pherthyl
8th November 2007, 18:35
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.