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

perf: avoid String.replaceAll in HTTPJavaImpl #5953

Merged
merged 1 commit into from Jun 1, 2023
Merged

Conversation

vlsi
Copy link
Collaborator

@vlsi vlsi commented Jun 1, 2023

HTTP Java sampler used replaceAll("\n", "\r\n").length(), and we could count the number of \n instead to avoid building the string.

@vlsi vlsi added this to the 5.6 milestone Jun 1, 2023
@vlsi vlsi merged commit 264654d into apache:master Jun 1, 2023
7 checks passed
@vlsi vlsi deleted the replaceall branch June 2, 2023 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant