From kde-devel Sun Mar 27 23:24:42 2005 From: "Fred P." Date: Sun, 27 Mar 2005 23:24:42 +0000 To: kde-devel Subject: Re: [optimization] QStringTemp for Qt 4 Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=111196594000151 Well, it seems that they do not wish to integrate it... =P In the mean time, I got a little bit more stable performance out of this version, by eliminating any loop or if statement in this very simple buffer size 'prediction' algorithm. Enjoy! inline int QStringTempSize( register int value ) { value |= (value >> 4); value |= (value >> 2); value |= (value >> 1); value |= 15; value++; return value; } >The developers have considered optimizing QString by introducing temp >objects and have decided that it is not worth doing the optimization in >this way, so nothing will be changed for Qt 4.0 I am afraid. Thankyou >for the indepth information you have sent however. > >Regards, >Andy >-- >Trolltech AS, Waldemar Thranes gate 98, NO-0175 Oslo, Norway > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<