[ https://issues.apache.org/jira/browse/CLOUDSTACK-10408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bd2019us updated CLOUDSTACK-10408: ---------------------------------- Labels: pull-request-available (was: ) > 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: 10m > 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 (v7.6.3#76005)