-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Speedup by removing non pattern replaceAll with constant arg #581
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR - these are good changes to have.
replaceAll("ABC", "") is non Pattern method and therefore must be replaced to simple fast replace() A proofs of changes: https://gist.github.com/tbw777/8a6ef60af21487c5faec67037099fd0b
@markt-asf |
IMO
|
|
Apologies: my comments are rubbish after Java 9. Please forgive the noise. |
RELNOTES: N/A ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=180751675
A replaceAll -> replace change in for example
|
replaceAll("ABC", "") is non Pattern method and therefore must be replaced to simple fast replace()
A proofs of changes: https://gist.github.com/tbw777/8a6ef60af21487c5faec67037099fd0b