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

Improve performance #27

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Improve performance #27

merged 1 commit into from
Sep 8, 2023

Conversation

mohd-akram
Copy link
Contributor

@mohd-akram mohd-akram commented Sep 7, 2023

This makes tests run about three times faster. Recreating the regular expressions on every invocation slows things down.

This library is used by the limax module which had poor performance as a result.

Closes #22

This makes tests run about three times faster. Recreating the regular
expressions on every invocation slows things down.
@lovell lovell merged commit 7d5a58c into lovell:master Sep 8, 2023
@lovell
Copy link
Owner

lovell commented Sep 8, 2023

Brilliant, thank you very much Mohamed.

@lovell
Copy link
Owner

lovell commented Sep 8, 2023

v1.2.1 now available.

@mohd-akram mohd-akram deleted the improve-perf branch September 8, 2023 08:49
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

Successfully merging this pull request may close these issues.

Provide regexes to bulkReplace when possible
2 participants