Open u8983478934 opened 6 years ago
True... Native Regex and Strings are ridiculously slow in Golang... :(
Depends on your bias. If you care more about the worst case, which you should for obvious security reasons, PCRE (and thus Java, Perl, PHP, Python, Ruby, ...) can be million times slower than Go processing a "huge" 29-character string.
No bias, just pragmatic measurements - I did my own testing and arrived at the same conclusion. Performance does not depend on bias. By the way nice information about ReDoS, thanks.
https://github.com/golang/go/issues/26623