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

Move away from onig to regex #2

Closed
untitaker opened this issue Aug 19, 2019 · 8 comments
Closed

Move away from onig to regex #2

untitaker opened this issue Aug 19, 2019 · 8 comments

Comments

@untitaker
Copy link
Contributor

Would you accept a patch that moves from onig to regex for performance? The go implementation uses a similar regex dialect and it seems that the uap-core project made their regexes compatible with that.

@untitaker
Copy link
Contributor Author

@davidarmstronglewis

@untitaker
Copy link
Contributor Author

nvm rust-lang/regex#524

@untitaker
Copy link
Contributor Author

checking if it's feasible to change the regexes in uap-core to avoid ||

@oceanlewis
Copy link
Owner

You can definitely take a look, but if you're looking for a pure Rust implementation this project might not be the best for your use-case since I am relying on upstream regexes from the UAParser project. I suppose there's nothing stopping you from supplying your own regexes and swapping out the Onig for Regex, but at that point you're probably better off looking at Woothie.

@untitaker
Copy link
Contributor Author

untitaker commented Aug 26, 2019 via email

@oceanlewis
Copy link
Owner

Thanks for looking into this. Let me know if you decide to keep going with this library or move to another :)

@untitaker
Copy link
Contributor Author

untitaker commented Aug 30, 2019 via email

@untitaker
Copy link
Contributor Author

#4 moves the library to fancy-regex

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