normalized signature of signals/slots
Lubos Lunak
l.lunak at suse.cz
Mon Nov 14 16:02:09 CET 2005
On Monday 14 of November 2005 15:40, Olivier Goffart wrote:
> Le Lundi 14 Novembre 2005 14:56, Koos Vriezen a écrit :
> > On Mon, Nov 14, 2005 at 01:44:14PM +0100, Olivier Goffart wrote:
> > > 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 :)
>
> 5323/(20000*3) = less than 0.1 ms per connect/disconnect pair
> It was on a 1,8Ghz Pentium M
>
> Yes, it's quite few. that is why i ask if it would be interesting to write
> a script that normalize the signature of signals in the code.
There's benchmarking for finding out things like that.
> I don't know how many signals/slots are connected at kde start
static int cnt = 0;
qDebug( "CONNECTS: %d", ++cnt );
> , but it
> should be much.
> is gaining 0.02ms per connection interesting enough ?
Profiling kwrite startup with sysprof here says about 1-2% is spent in
connect() but it's so fast that it's reaching samples resolution and as such
I wouldn't trust it so much. You might want to try with cachegrind or a
slower machine.
--
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27 tel: +420 2 9654 2373
190 00 Praha 9 fax: +420 2 9654 2374
Czech Republic http://www.suse.cz/
More information about the Kde-optimize
mailing list