[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-optimize
Subject:    Re: normalized signature of signals/slots
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2005-11-14 8:16:31
Message-ID: 200511140916.31634.neundorf () kde ! org
[Download RAW message or body]

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@jenoptik.com - http://www.jenoptik-los.de
Home: neundorf@kde.org                - http://www.kde.org
      alex@neundorf.net               - http://www.neundorf.net
_______________________________________________
Kde-optimize mailing list
Kde-optimize@kde.org
https://mail.kde.org/mailman/listinfo/kde-optimize
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic