You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Dan Becker (JIRA)" <de...@tuscany.apache.org> on 2008/11/07 22:21:44 UTC

[jira] Updated: (TUSCANY-2667) [PERF] - Avoid creating unecessary objects

     [ https://issues.apache.org/jira/browse/TUSCANY-2667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Becker updated TUSCANY-2667:
--------------------------------

    Description: 
Performance - unvoid creating unnecessary objects.
"Effective Java Second Edition" by Joshua Block, Item 5 has a good hint for avoiding unnecessary objects.
This:
   String s = new String( "stringette" );
should be replaced by
   String s = "stringette";

This change aids in runtime optimizations and string literal sharing across object instances.

  was:
Performance - unvoid creating unneccesary objects.
"Effective Java Second Edition" by Joshua Block, Item 5 has a good hint for avoiding unnecessary objects.
This:
   String s = new String( "stringette" );
should be replaced by
   String s = "stringette";

This change aids in runtime optimizations and string literal sharing across object instances.

        Summary: [PERF] - Avoid creating unecessary objects  (was: [PERF] - Avoid creating uneccesary objects)

> [PERF] - Avoid creating unecessary objects
> ------------------------------------------
>
>                 Key: TUSCANY-2667
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2667
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-1.3.2
>         Environment: All
>            Reporter: Dan Becker
>            Assignee: Dan Becker
>            Priority: Minor
>
> Performance - unvoid creating unnecessary objects.
> "Effective Java Second Edition" by Joshua Block, Item 5 has a good hint for avoiding unnecessary objects.
> This:
>    String s = new String( "stringette" );
> should be replaced by
>    String s = "stringette";
> This change aids in runtime optimizations and string literal sharing across object instances.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.