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

Performance overhead estimate? #12

Open
Nantris opened this issue Jul 17, 2020 · 1 comment
Open

Performance overhead estimate? #12

Nantris opened this issue Jul 17, 2020 · 1 comment

Comments

@Nantris
Copy link

Nantris commented Jul 17, 2020

This library looks very cool! I was wondering if you have any ballpark estimate of where using regexp-worker becomes "worth it?"

For example, I'm sure it's not worth it if you're running /.*/ on a 10 character string, but is it worth it to run /someword/ on a hundred character string, a thousand character string? Any idea?

Thanks for sharing this cool project!

@Jason3S
Copy link
Contributor

Jason3S commented Aug 8, 2020

Great question.

It works best in batch style requests to reduce the call overhead.

The main reason I created this was to address issues where the regexp came from the user causing extreme performance issues and even lockups.

For example, run a regexp against an entire document.

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