cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <>
Subject [GitHub] cloudstack pull request: Make the generated json files unique to p...
Date Mon, 11 Apr 2016 22:44:34 GMT
Github user jburwell commented on a diff in the pull request:
    --- Diff: core/src/com/cloud/agent/resource/virtualnetwork/facade/
    @@ -104,13 +109,25 @@ public static AbstractConfigItemFacade getInstance(final Class<?
extends Network
             return instance;
    +    private static String appendUuidToJsonFiles(final String filename) {
    +        String remoteFileName = new String(filename);
    --- End diff --
    Use of ``new String()`` is a significant performance problem as it bypasses the constant
pool -- placing additional pressure on the heap and garbage collector.  The ``StringBuilder``
class is provided for these types of circumstances and avoids these performance problems.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message