[ https://issues.apache.org/jira/browse/CLOUDSTACK-10408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026599#comment-17026599 ]
ASF subversion and git services commented on CLOUDSTACK-10408: -------------------------------------------------------------- Commit f1149bcb09e88b1aeeeb78ef011e09dc1e2f0649 in cloudstack's branch refs/heads/master from Xia Li [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=f1149bc ] [CLOUDSTACK-10408] Fix String.replaceAll() to replace() for bet… (#3275) * [CLOUDSTACK-10408] Fix String.replaceAll() to replace() for better performance * improve with replace char but string Co-authored-by: Rohit Yadav <ro...@apache.org> > change String.replaceAll() to replace() to improve performance. > --------------------------------------------------------------- > > Key: CLOUDSTACK-10408 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10408 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Reporter: bd2019us > Priority: Major > Labels: pull-request-available > Attachments: 1.patch > > Time Spent: 1h > Remaining Estimate: 0h > > Location: > (1) > framework/ipc/src/main/java/org/apache/cloudstack/framework/serializer/OnwireClassRegistry.java > (2) > plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java > (3) > plugins/hypervisors/vmware/src/main/java/com/cloud/hypervisor/vmware/manager/VmwareStorageManagerImpl.java > (4) server/src/main/java/com/cloud/user/AccountManagerImpl.java > When the replaced string is not represented as a regular expression, the > String.replace() should be used to gain a better performance since it does > not perform pre-compiling, which may cost some additional time. -- This message was sent by Atlassian Jira (v8.3.4#803005)