Regular expressions performance: Boost vs. Perl

后端 未结 7 1976
梦谈多话
梦谈多话 2021-02-04 08:02

I\'m looking for a performance comparison between perl and boost regular expression.
I need to design a piece of code which relies very heavily on regular expressions, and c

7条回答
  •  太阳男子
    2021-02-04 08:32

    Unless your regex is insanely complex (for which perl's regex engine is incredibly fast by the way) then as other's have said, your overhead is in interpreter startup. On the other hand you could run a persistent perl that provides a regex server quite easily.

提交回复
热议问题