5. The method of claim 1 , 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.
5. The method of claim 1 , 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. 6. The method of claim 5 , further comprising: determining which pattern matching rules are candidates to be a part of the first subgroup based on pattern matching rule estimated processing time, wherein pattern matching rules with the longest processing times are candidates to be a part of the first subgroup.