On Sunday, 16 de October de 2011 19:51:39 Olivier Goffart wrote:
> > I don't see how it can expand to less code than a simple vector. The best
> > case scenario is to expand to the same code or to similar complexity --
> > assuming of course that QVector is optimised to produce minimal code too.
> 
> Because QList make use of much more stuff in QListData that is not template 
> type (hence, not generated for every types)
> However, I beleive it is possible to do the same optimisation for movable
> type  within QVector, if we want to.

The biggest difference between current QList and QVector is that the size of 
the element is constant in QList, whereas it varies in QVector. The static 
code to manage the array, however, need not know the difference: it only needs 
to know the total size and the alignment requirement.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to