Speedup by removing non pattern replaceAll with constant arg#581
Conversation
markt-asf
left a comment
There was a problem hiding this comment.
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