You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/04/14 02:22:00 UTC
[jira] [Created] (CLOUDSTACK-10408) change String.replaceAll() to
replace() to improve performance.
bd2019us created CLOUDSTACK-10408:
-------------------------------------
Summary: 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
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)