Re: normalized signature of signals/slots

Alexander Neundorf <[email protected]> Mon, 14 Nov 2005 09:16:31 +0100
Newsgroups gmane.comp.kde.devel.optimize
Message-ID <[email protected]>
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
> (This may i guess be even more in the case of bigger signatures, or class
> with more signals and slots)
>
> Usually, we don't use normalized signature: Less intuitive, and the one
> KDevelop auto-complete (nice feature btw) is not normalized.

Hmm, connecting a slot doesn't happen very often, usually just once, so from 
this POV it's not a bottleneck.
OTOH the connecting usually happens on application startup and it's a "core" 
feature of Qt, so it should be as fast as possbile.

Using the normalized signature in the code wouldn't look exactly nice, many 
might consider it a bug when looking at the code.
Maybe some clever macros or templates could help ?

Bye
Alex
-- 
Work: [email protected] - http://www.jenoptik-los.de
Home: [email protected]                - http://www.kde.org
      [email protected]               - http://www.neundorf.net