QString: Allocating more than needed?
David Faure
kde-optimize@mail.kde.org
Sun, 26 Jan 2003 11:27:53 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 26 January 2003 11:20, Stefan Heimers wrote:
> - Is there a way to create qstrings with a fixed length, which won't=20
> waste memory in case you know they will never grow?
Yes, setLength().
> - It would be nice to have an option to set the maximum expected length=20
> of a qstring, so it won't allocate in excess, or too little if you know=20
> a string will grow considerably.
setLength() ? :)
=2D --=20
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Klar=E4lvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+M7gq72KcVAmwbhARAllmAJoCm+ibPhd8VVhENrdg0Hg5mvnx+wCfe4g7
ISt/VFY3TxUDC18B11nQU/o=3D
=3DSVdC
=2D----END PGP SIGNATURE-----