Regular expressions performance: Boost vs. Perl

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

    If you really need fast you can get a REGEX content coprocessor. There are two that I know of. Titanic makes a range of processors. Another is made by Cavium. And finally, LSI bought out a smaller company, and is shipping a line of regular expression matching processors.

    Theses systems can execute thousands of regular expressions in parallel, rather than one-at-a-time. The most expensive part of using them is moving memory to them and moving them back, and dealing with block-limits, etc.

    But if performance is a concern, you might want to try these out.

提交回复
热议问题