normalized signature of signals/slots
    Alexander Neundorf 
    neundorf at kde.org
       
    Mon Nov 14 09:16:31 CET 2005
    
    
  
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: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org                - http://www.kde.org
      alex at neundorf.net               - http://www.neundorf.net
    
    
More information about the Kde-optimize
mailing list