Re: normalized signature of signals/slots

Olivier Goffart <[email protected]> Mon, 14 Nov 2005 13:44:14 +0100
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
Le Lundi 14 Novembre 2005 13:05, Koos Vriezen a écrit :
> On Saturday 12 November 2005 11:30, Olivier Goffart wrote:
> > Hello
>
> ...
>
> > After some test (attached) I noticed that the normalized signature is
> > about twice times faster than the not normalized one
>
> Can you give some numbers (I tried to compile it but apparently that's
> not a 'g++ test_signals.cpp -lqt-mt' one ..)

I used 
gcc -I/opt/qt4/include/ -I/opt/qt4/include/QtCore/ -L/opt/qt4/lib/ 
-lQtCore_debug -O2 test_signals.cpp       


As result i obtain

normalized: 2469ms
usual: 5323ms    ratio: 2.15593

I repeated it several times, the ratio is always between 1.9 and 2.2

> > (This may i guess be even more in the case of bigger signatures, or class
> > with more signals and slots)
>
> Isn't it a hashtable?

No, it's all linear

_______________________________________________
Kde-optimize mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-optimize
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBDeIakz58lY8jWrL0RAnsIAJ9UfoeW5JfuIgJCKF2AY0kwVOryGQCfcc4H
dkFWMIXqqJcxo+cwvEBYB5c=
=Yymg
-----END PGP SIGNATURE-----