ksimka / go-is-not-good

A curated list of articles complaining that go (golang) isn't good enough
3.82k stars 129 forks source link

regexp: Go's regex is even slower than Python #48

Open u8983478934 opened 6 years ago

u8983478934 commented 6 years ago

https://github.com/golang/go/issues/26623

onlyjob commented 6 years ago

True... Native Regex and Strings are ridiculously slow in Golang... :(

cznic commented 6 years ago

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.

onlyjob commented 6 years ago

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.