On Friday 10 July 2015 11:54:16 Smith Martin wrote: > Then I don't see why it is so inherently inefficient. The QList entry is > allocated on the heap anyway. Doesn't QList<C> just allocate a bigger > entry? And if I don't have the C object stored anywhere else, it has to be > somewhere, so why not keep it in the QList entry?
Can we please avoid turning this thread into "why is QList" bad? QList *is* bad. If you don't believe, read http://marcmutz.wordpress.com/effective-qt/ If you then _still_ don't believe, do your own benchmarks. Then you will believe. Thanks, Marc -- Marc Mutz <marc.m...@kdab.com> | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company Tel: +49-30-521325470 KDAB - The Qt Experts _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development