while keeping the syntax readable as is.
e.g.
QStringTemp tmp( 4096 );
QString s = tmp + a + b + c + d;
OR
uint sz = a::length() + b::length() +
c::length() + d::length();
QStringTemp tmp( sz );
QString s = tmp + a + b + c + d;
Another way is to modify the
QString:

to use QStringTemp implicitely.
Performance increase from few ms to 4x faster depending on the buffer size
and the size of each string.
See test cases screenshots
for various buffer size algorithms.
The Qt version of this code may be released under the GPL/QPL, if needed.
HOW TO INSTALL:
===============
To install, use this tarball to OVERWRITE your KDE 3.x CVS
qt-copy/ directory!
For more information:
=====================
Read the ./qt-copy/QStringTemp.README file
Ratings & Comments
4 Comments
is it in de 3.4 ? or kde 3.3 on debian/sarge ?
will this work with kde 3.2?
to get this into KDE/QT??? I'm sure the trolltech ppl want a performance increase...
Some links: =========== http://lists.kde.org/?l=kde-devel&m=108258610631883&w=2 http://lists.kde.org/?l=kde-optimize&m=108270977426938&w=2 http://kde-apps.org/content/show.php?content=12158