Re: normalized signature of signals/slots
Koos Vriezen <[email protected]> Mon, 14 Nov 2005 14:56:16 +0100
| Newsgroups | gmane.comp.kde.devel.optimize |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Nov 14, 2005 at 01:44:14PM +0100, Olivier Goffart wrote: > 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 Ah qt4, that's not for me yet .. > As result i obtain > > normalized: 2469ms > usual: 5323ms ratio: 2.15593 2.6ms/connect still doesn't say much actually, does sound quite slow (but maybe you ran it on a 66 MHz ARM CPU :) Sorry for the noise (the QDateTime header should have showed me). Koos > 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