[Development] Important recent changes in QList/QString/QByteArray
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
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...
Size: 4329 bytes
Desc: S/MIME Cryptographic Signature
More information about the Development