[Development] Qt6 source changes

André Pönitz apoenitz at t-online.de
Fri Nov 2 09:13:37 CET 2018


On Thu, Nov 01, 2018 at 08:45:58PM -0700, Thiago Macieira wrote:
> On Thursday, 1 November 2018 19:18:11 PDT Kevin Kofler wrote:
> > Thiago Macieira wrote:
> > > We're studying what to do with QList, but the idea is that the name
> > > "QList" will be completely ok and identical to QVector. The technical
> > > mechanism is in flux.
> > 
> > That means you will be pessimizing element inserts and removals from O(n) to
> > O(mn), where n is the length of the list and m the size of each element,
> > without offering a good alternative without that pessimization (sure, you
> > can use a QVector<T*> or QVector<SomeSmartPointer<T>>, but those have
> > somewhat different semantics and less convenient syntax).
> 
> Yes. Is that a widespread use? And will it be a perceptible change?

Depends on usage.

See e.g. 551efd91990e07902e5324f720cf5585865c323d

   QmlProfiler: Use QList for QmlRange container when loading .qtd
    
   As we are using this as a queue, with many calls to takeFirst(), a
   QVector is prohibitively expensive here.

Andre'



More information about the Development mailing list