[Development] HEADS UP: Don't use QList, use Q_DECLARE_TYPEINFO
Marc Mutz
marc.mutz at kdab.com
Fri Jul 10 13:25:25 CEST 2015
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.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
More information about the Development
mailing list