Ah, that's a nice one. I wonder why I haven't come across that benchmark myself.

I haven't yet made it thread safe, but I have been wondering about this. Does it have to implement the slot-calls (which can itself be thread-unsafe) in a safe manner to be considered thread-safe? Or does it only have to be safe with respect to its own data?

Cheers,
Joren

On Feb 6, 2015 8:49 AM, "Dominique Devienne" <ddevienne@gmail.com> wrote:
On Fri, Feb 6, 2015 at 12:15 AM, Joren Heit <jorenheit@gmail.com> wrote:
I have been working on [...] a template-based Signal/Slot library [...],I want to test it against boost::signals2 to get an idea of how well it performs.
[...]. Initial tests show that my own library can be up to 10 times faster than the boost-implementation, [...]

This benchmark [1] might be of interest. --DD

PS: In particular, note how the one asterisk'd with "Library aims to be thread safe" are at the bottom.


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users