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

Optimize StatusCode Line Matching for ASCII #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amcrn
Copy link

@amcrn amcrn commented Nov 2, 2017

String.matches(String regex) results in a re-compilation of the regex
every single invocation. Instead of using an underlying inefficient
Pattern/Matcher, instead use String.startsWith(String prefix). This
optimization matters for high throughput usecases when an endpoint
goes down and the number of SERVER_ERROR spikes dramatically.

String.matches(String regex) results in a re-compilation of the regex
every single invocation. Instead of using an underlying inefficient
Pattern/Matcher, instead use String.startsWith(String prefix). This
optimization matters for high throughput usecases when an endpoint
goes down and the number of SERVER_ERROR spikes dramatically.
@ingenthr ingenthr self-assigned this Mar 27, 2018
@amcrn
Copy link
Author

amcrn commented May 18, 2018

Hey @ingenthr , any chance you could take a look at this and my other pull requests in the near future? Thanks!

@ingenthr
Copy link

Yep, had a look y'day, and planning to do a bit more today. I'm working at getting them in and another update.

@amcrn
Copy link
Author

amcrn commented Oct 24, 2018

@ingenthr re-bumping

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.

2 participants