Charlie Brady wrote:
I don't think a lex/yacc parser will necessarily parse faster than a perl parser, so I don't think that GB of logfiles would justify writing a parser in C. Frequent executation of a parser OTOH might. A perl parser will very likely be slower to start up, but might execute just as fast once running.

To be fair, in general a parser written in lex/yacc will usually be an order of magnitude faster than the same parser written in perl with regexp.

Much as a love perl, there are sometimes undeniable performance benefits for using other languages.

Matt.

Reply via email to