[Development] Important recent changes in QList/QString/QByteArray
Giuseppe D'Angelo
giuseppe.dangelo at kdab.com
Wed Sep 2 21:37:49 CEST 2020
On 02/09/2020 21:18, Andrei Golubev wrote:
> Also not sure whether it is an implementation detail or the behavior
> that should always be anticipated.
People build performance sensitive code assuming the cost of certain
operations -- like, assuming that erasing elements from a vector never
reallocates it; and that the only operation that sheds capacity is
squeeze(), everything else (incl. clear(), incl. resize(0)) keeps the
capacity (*). We should stop backstabbing them...
(*) Which of course opens an interesting discussion in case of these
operations detach
Thanks,
--
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200902/2be65068/attachment.bin>
More information about the Development
mailing list