1. A method for dispatching an event to a rule, the method comprising: generating a table from a rule set, wherein the table includes an indication of whether each rule in the rule set corresponds to at least one event type; receiving an event; and in the case that at least one rule in the rule set corresponds to an event type of the event, dispatching the event to the at least one rule.