[Development] QList for Qt 6

Konstantin Tokarev annulen at yandex.ru
Wed May 22 18:32:12 CEST 2019



22.05.2019, 19:28, "Иван Комиссаров" <abbapoh at gmail.com>:
>> 4. Use QVector to implement QList<Foo>, if sizeof(Foo) <= sizeof(quint64) and Foo is movable
>
> What about fast prepend in that case? People tend to use QList as a deque because of the fast prepend/take first

FWIW, std::deque is implemented as a peculiar data strucutre which is not really contiguous, and it may perform worse than QList in certain cases


-- 
Regards,
Konstantin



More information about the Development mailing list