From kde-optimize Mon Nov 14 12:44:14 2005 From: Olivier Goffart Date: Mon, 14 Nov 2005 12:44:14 +0000 To: kde-optimize Subject: Re: normalized signature of signals/slots Message-Id: <200511141344.20127.ogoffart () kde ! org> X-MARC-Message: https://marc.info/?l=kde-optimize&m=113197226327087 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0842933739==" --===============0842933739== Content-Type: multipart/signed; boundary="nextPart1415414.7O648zkXTc"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1415414.7O648zkXTc Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Lundi 14 Novembre 2005 13:05, Koos Vriezen a =E9crit=A0: > 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=20 gcc -I/opt/qt4/include/ -I/opt/qt4/include/QtCore/ -L/opt/qt4/lib/=20 =2DlQtCore_debug -O2 test_signals.cpp =20 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 cla= ss > > with more signals and slots) > > Isn't it a hashtable? No, it's all linear --nextPart1415414.7O648zkXTc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDeIakz58lY8jWrL0RAnsIAJ9UfoeW5JfuIgJCKF2AY0kwVOryGQCfcc4H dkFWMIXqqJcxo+cwvEBYB5c= =Yymg -----END PGP SIGNATURE----- --nextPart1415414.7O648zkXTc-- --===============0842933739== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-optimize mailing list Kde-optimize@kde.org https://mail.kde.org/mailman/listinfo/kde-optimize --===============0842933739==--