Signal & Slot Implementation In D

Frank Benoit keinfarbton at
Thu Sep 18 02:16:05 PDT 2008

Sam Hu Wrote:
> Well noted DWT uses typed and untyped listener.Just wanna know more about the performance.AFAIK,the performance of signal & slot is far slower than call back functions,how about listeners?Is it slower than signal & slots or in the middle of call back functions and S&S?

The concept of s&s is mainly, that they disconnect automatically and does not prevent an object from GC collection. It is not about performance IMO.
The Listeners in DWT do use a virtual function call. So the call performance is not much of relevance, i think. But the creation of a Listener itself is always using a Heap allocated object. That might be of relevance. 

More information about the Digitalmars-d-dwt mailing list