3 ms·
"higher performance" depends on the specific case. I think the Tcl RE engine (Henry Spencer's[0], which is also used in PostreSQL[1][2]) does avoid some patholo
by bch 11y ago
"higher performance" depends on the specific case. I think the Tcl RE engine (Henry Spencer's[0], which is also used in PostreSQL[1][2]) does avoid some pathological cases where Perl/PCRE fall down[3], but PCRE does best Spencer's work in other areas. They also simply have a different feature list[4].
[0] http://wiki.tcl.tk/396 http://wiki.tcl.tk/396
[1] http://www.postgresql.org/docs/9.3/static/functions-matching.html http://www.postgresql.org/docs/9.3/static/functions-matching...
[2] http://www.regular-expressions.info/postgresql.html http://www.regular-expressions.info/postgresql.html
[3] https://swtch.com/~rsc/regexp/regexp1.html https://swtch.com/~rsc/regexp/regexp1.html
[4] https://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines https://en.wikipedia.org/wiki/Comparison_of_regular_expressi...