A friend claimed that Common Lisp has the fastest Perl-compatible regular expression library of any language, including Perl , because with an optimizing JIT compiler like SBCL, CL-PPCRE can compile each particular regular expression before its own assembly, while other implementations, including Perl, must generate bytecode and interpret it. In practice, especially for the normal case, when we try to match the same regular expression with many inputs or long inputs, the compilation overhead is more than justified.
Unfortunately, I canβt find any tests on this, and I donβt know enough to run my own, so I turn to the hives. Can anyone rate this requirement?
performance perl pcre common-lisp jit
Wang
source share