Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
u8983478934 opened this issue Sep 28, 2018 · 3 comments
Open

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

u8983478934 opened this issue Sep 28, 2018 · 3 comments

Comments

@u8983478934
Copy link

golang/go#26623

@onlyjob
Copy link

onlyjob commented Sep 28, 2018

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

@cznic
Copy link

cznic commented Sep 28, 2018

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
Copy link

onlyjob commented Sep 28, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants