From kde-optimize Mon Nov 14 13:56:16 2005 From: Koos Vriezen Date: Mon, 14 Nov 2005 13:56:16 +0000 To: kde-optimize Subject: Re: normalized signature of signals/slots Message-Id: <20051114135616.GD87676 () xs4all ! nl> X-MARC-Message: https://marc.info/?l=kde-optimize&m=113197658711563 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 > Kde-optimize@kde.org > https://mail.kde.org/mailman/listinfo/kde-optimize _______________________________________________ Kde-optimize mailing list Kde-optimize@kde.org https://mail.kde.org/mailman/listinfo/kde-optimize