Matt Rogers wrote:
>Do we have any hard numbers of how fast normalized vs. unnormalized is?
> Right now, it's nothing more than a coding style issue since the
> improvments can't be quantified.

normalised connects are just a strcmp away. Unnormalised make it two 
strcmp plus the normalisation itself, which includes the creation of a 
QByteArray (so, memory allocation). It'll depend on the complexity of the 
parameter signature, of course. The point is that the connection always 
happens on normalised signatures so, if you don't give Qt one, it'll 
normalise for you.

Conclusion: normalised connects are faster than non-normalised connects in 
all cases.

Gof did some testing:
http://lists.kde.org/?l=kde-optimize&m=113179145816900&w=2
He found a 100% decrease in connection speed by using non-normalised 
signatures.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

Attachment: pgpVQkacPoXdT.pgp
Description: PGP signature

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to