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

Regular expression re-compiled at every call to parse() #6

Closed
mdharm opened this issue Jan 6, 2022 · 0 comments · Fixed by #9
Closed

Regular expression re-compiled at every call to parse() #6

mdharm opened this issue Jan 6, 2022 · 0 comments · Fixed by #9

Comments

@mdharm
Copy link
Collaborator

mdharm commented Jan 6, 2022

parse() uses crate regex to process the HTTP Link: header. As part of this, a regular expression is re-compiled every time parse() is called. This should be moved to a lazy_static to avoid the processing penalty every time parse() is called.

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 a pull request may close this issue.

1 participant