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

Locks up when matching in large strings #3

Open
fwgreen opened this issue Jan 15, 2019 · 1 comment
Open

Locks up when matching in large strings #3

fwgreen opened this issue Jan 15, 2019 · 1 comment

Comments

@fwgreen
Copy link

fwgreen commented Jan 15, 2019

Regex works fine for most tasks, but locked my machine when finding matches in a 50MB string. Is there a way around this? I was trying to use it in place of NSRegularExpression in The Benchmark Game.

@DavidSkrundz
Copy link
Owner

Currently I'd recommend using NSRegularExpression or another well-known C library. The slowness is due to running an NFA. I have plans to rewrite the library using a DFA but I am still quite far from running any expression.

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

2 participants