Boost logo

Boost :

Subject: Re: [boost] Proposal for library addition: faster signals/slots, reactor, atomics
From: Helge Bahmann (hcb_at_[hidden])
Date: 2009-11-24 17:00:05


Am Tuesday 24 November 2009 15:18:41 schrieb Vicente Botet Escriba:
> I think everyone is interested in having an implementation, even a partial
> one, of the standard atomic library. There are a lot of internal
> implementation on the Boost libraries (SmartPtr, Thread, Task between
> others), maybe you can federate this implementation.

with pleasure

> Concerning the Signal/Slot implementation it would be worthwhile to extract
> it in a separated one. If the performances you announce are correct, I
> think you will have a lot of people interested in.

getting rough numbers is as easy as:

tscb::signal<void(size_t)> sig;
sig.connect(boost::bind(...));
for(size_t n=0; n<1000000; n++) sig(n);

replace with boost::signal/signal2 as appropriate

if you try this on non-x86 the performance difference is even greater

Best regards
Helge


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk