Regular Expression Benchmark (https://pyscripter.blogspot.gr/2018/04/benchmark-of-regular-expression-engines.html). You may find it interesting and surprising.

Regular Expression Benchmark (https://pyscripter.blogspot.gr/2018/04/benchmark-of-regular-expression-engines.html). You may find it interesting and surprising.

Comments

  1. Kiriakos Vlahos "algorithm counts more than the compiler". That depends. Plenty of good algorithms are ruined by the terrible code that the Delphi compilers emit.

    ReplyDelete
  2. Mahdi Safsafi The syntax FLRE covers is pretty complete. It has backreferences, forward, backward, positive, negative lookups, named groups, latest Unicode support, Unicode categories, etc. It is by no means light. If anything I think is more comprehensive than most other regular expression engines including PCRE. Backward lookups were only recently added to Python re for example. Of course it is less tested than other mature engines and it has bugs. But just try for example to use JIT with PCRE, even recent versions. It crashes very often. I tried to compile a recent version of PCRE and the warnings the compiler generated were really frightening (not the number but the nature of the warnings).

    ReplyDelete

Post a Comment