4 ms·
Semantically, a signal is basically just a collection of method pointers + receivers for the same, so one could reasonably expect the same performance as iterat
by int_19h 4y ago
Semantically, a signal is basically just a collection of method pointers + receivers for the same, so one could reasonably expect the same performance as iterating over a bunch of function pointers and calling them in turn. Which shouldn't be 10x slower than calling a single pointer.
(I believe the reason why it doesn't quite work that way in practice is because slot dispatch is ID-based, not pointer-based.)