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

Automatically optimize regexes #278

Open
eteran opened this issue Jan 15, 2021 · 1 comment
Open

Automatically optimize regexes #278

eteran opened this issue Jan 15, 2021 · 1 comment

Comments

@eteran
Copy link
Owner

eteran commented Jan 15, 2021

After I complete the regex engine refactor, I'd like to have it be able to optionally optimize the regexs by performing transformations similar to the ones found here:

https://bisqwit.iki.fi/source/regexopt.html

I've in the past done some experiments where we can trivially replace things like [0-9] (which gets expanded to [0123456789]) just a \d which is much more efficient in both time and space.

This is a low priority for now since we're pushing for "fix all quirks and get NEdit 6.0 released", but I wanted to keep this on my radar.

@tksoh
Copy link
Contributor

tksoh commented Jan 16, 2021

This looks interesting. Let's get 6.0 out of the door ASAP! ;-)

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

No branches or pull requests

2 participants