Skip to content

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