Skip to content

Optimize StatusCode Line Matching for ASCII#24

Open
amcrn wants to merge 1 commit into
couchbase:masterfrom
amcrn:enh/startswith-vs-matches
Open

Optimize StatusCode Line Matching for ASCII#24
amcrn wants to merge 1 commit into
couchbase:masterfrom
amcrn:enh/startswith-vs-matches

Conversation

@amcrn

@amcrn amcrn commented Nov 2, 2017

Copy link
Copy Markdown

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

amcrn commented May 18, 2018

Copy link
Copy Markdown
Author

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

@ingenthr

Copy link
Copy Markdown

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

amcrn commented Oct 24, 2018

Copy link
Copy Markdown
Author

@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