12. The medium of claim 8 , further comprising: dividing the plurality of pattern matching rules into subgroups, wherein a first subgroup contains the one or more optimized pattern matching rules, and wherein a second subgroup contains all other pattern matching rules; and applying each of the first subgroup before applying the second subgroup.
14. The medium of claim 12 , further comprising: determining which of the pattern matching rules are candidates to be a part of the first subgroup based on dependency relationships between two or more rules, wherein the pattern matching rules having a most related rules are candidates to be a part of the first subgroup.