[Development] QList for Qt 6 (was: Re: Build system for Qt 6)
Allan Sandfeld Jensen
kde at carewolf.com
Mon May 20 21:11:03 CEST 2019
On Freitag, 2. November 2018 08:51:22 CEST Lars Knoll wrote:
> Renaming the subthread (it’s got nothing to do with build systems…)
>
> I believe I have a solution to get rid of QList without breaking SC in any
> major way. See https://codereview.qt-project.org/#/c/242199/ and the
> following changes.
> I did some benchmarking (as we were worried about the different performance
> characteristics of QList and QVector) and with the exception of prepending
> in a loop pretty much all other operations gets faster with this change.
> So to re-iterate: We will not break SC in major ways. The goal is to make
> porting from Qt 5.x to 6 as easy as possible.
Would we have a different implementation for QQueue then? One of the few
benefits of QList was the prepend optimization, which is mostly unused, except
in QQueue. Perhaps the current QList definition could just become QQueue?
'Allan
More information about the Development
mailing list