KDevVarLengthArray: memmove / memcopy?
David Nolden
zwabel at googlemail.com
Mon Jul 4 12:22:21 UTC 2011
2011/7/3 Syron <mr.syron at googlemail.com>:
> I had some time thinking about the KDevVarLengthArray class. Fact is that
> the QVarLengthArray is only a RAII wrapper around ordinary C-style arrays
> that is not supposed to have insert/indexOf/remove/etc. semantics. I think
> that replacing the array wrapper with a QVector/QList would be better, esp.
KDevVarLengthArray is used in places where the lists contain few items
and the items are very frequently changing. QVector/QList require tons
of memory-allocations for that, and that's the reason why
KDevVarLengthArray is used.
More information about the KDevelop-devel
mailing list