>>67Anyway, in case you are not a troll, your confusion stems from the fact you think callbacks are supposed to check the event and decide whether to act or not. Callbacks always act when they are called. You register callbacks using some mechanism provided by the event library. Thus, whether it is O(n) or O(1) to decide which callback to use, is up to the event library implementation.