We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey guys, I saw the following content when I was studying the es source code.
elasticsearch/server/src/main/java/org/elasticsearch/rest/RestUtils.java
Lines 148 to 160 in 4a49c08
I think this method can be optimized in terms of performance efficiency. e.g.
for (int i = 0; i < size; i++) { final char c = s.charAt(i); if (c == '%' || (plusAsSpace && c == '+')) { return true; } }
If it's necessary,I'll submit a PR later
The text was updated successfully, but these errors were encountered:
Optimizing loops elastic#110235
f2a2273
- when the target character is detected, the loop ends
b9e5323
Pinging @elastic/es-core-infra (Team:Core/Infra)
Sorry, something went wrong.
No branches or pull requests
Hey guys, I saw the following content when I was studying the es source code.
elasticsearch/server/src/main/java/org/elasticsearch/rest/RestUtils.java
Lines 148 to 160 in 4a49c08
I think this method can be optimized in terms of performance efficiency. e.g.
If it's necessary,I'll submit a PR later
The text was updated successfully, but these errors were encountered: