Georg Baum wrote:
Am Mittwoch, 4. Oktober 2006 20:33 schrieb Andre Poenitz:
On Wed, Oct 04, 2006 at 03:02:09PM +0200, Georg Baum wrote:
I guess Helge means
void ucs4_to_qstring(char_type const * str, size_t ls, QString & s)
That avoids one copy operation for non-shared strings, but since IIRC
qstrings are shared I don't expect a speedup here.
A shared 'copy' is still more expensive than 'no copy'.
If the other optimizations do not help then why not try this out?
ucs4_to_qstring is only called at two places :-)
I've done that and I've also inlined ucs4_to_qchar() and qchar_to_ucs4().
Abdel.