1. A method for processing data, comprising: accepting a specification of a plurality of patterns, each pattern defining a respective uncompressed sequence of symbols; and applying multi-pattern matching to an incoming stream of compressed communication traffic containing compression metadata so as to identify the patterns occurring in the stream while using the compression metadata to skip over parts of the stream.