Skip to content

perf: avoid String.replaceAll in HTTPJavaImpl#5953

Merged
vlsi merged 1 commit intoapache:masterfrom
vlsi:replaceall
Jun 1, 2023
Merged

perf: avoid String.replaceAll in HTTPJavaImpl#5953
vlsi merged 1 commit intoapache:masterfrom
vlsi:replaceall

Conversation

@vlsi
Copy link
Copy Markdown
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
@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.

1 participant