Regular expressions performance: Boost vs. Perl

后端 未结 7 1988
梦谈多话
梦谈多话 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:48

    Start with the simplest solution. Decide how fast it needs to be for your application. Then measure the speed. If it's too slow, try the harder solution. Measure again. Repeat as necessary.

    While my gut agrees with most of the other answers saying that starting the interpreter will be more expensive, you'll never know until you measure.

    There's "fastest possible" and "fast enough for your application". Don't add complexity to get the former if you already have the latter.

提交回复
热议问题