[Development] Container benchmark was HEADS UP: Don't use QList, use Q_DECLARE_TYPEINFO

Smith Martin Martin.Smith at theqtcompany.com
Sun Jul 12 19:56:48 CEST 2015


>If it doesn't, then why not choose QVector?

My intent in getting the information from Marc is to change the documentation of QList to say that.

But QList is easy to use. 

martin

________________________________________
From: development-bounces+martin.smith=theqtcompany.com at qt-project.org <development-bounces+martin.smith=theqtcompany.com at qt-project.org> on behalf of Thiago Macieira <thiago.macieira at intel.com>
Sent: Sunday, July 12, 2015 7:45 PM
To: development at qt-project.org
Subject: Re: [Development] Container benchmark was HEADS UP: Don't use QList,   use Q_DECLARE_TYPEINFO

On Sunday 12 July 2015 16:16:07 Smith Martin wrote:
> I can see by your explanation that QVector is almost always more efficient
> than QList. But sometimes the difference doesn't matter.

If it doesn't, then why not choose QVector?
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


More information about the Development mailing list