You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Edward Ribeiro (JIRA)" <ji...@apache.org> on 2009/06/20 23:08:07 UTC
[jira] Created: (CASSANDRA-246) Efficient way of creating wrapper
classes
Efficient way of creating wrapper classes
-----------------------------------------
Key: CASSANDRA-246
URL: https://issues.apache.org/jira/browse/CASSANDRA-246
Project: Cassandra
Issue Type: Improvement
Reporter: Edward Ribeiro
Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-246) Efficient way of creating wrapper
classes
Posted by "Edward Ribeiro (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edward Ribeiro updated CASSANDRA-246:
-------------------------------------
Attachment: CASSANDRA-246.patch
> Efficient way of creating wrapper classes
> -----------------------------------------
>
> Key: CASSANDRA-246
> URL: https://issues.apache.org/jira/browse/CASSANDRA-246
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Edward Ribeiro
> Attachments: CASSANDRA-246.patch
>
>
> Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
> The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-246) Efficient way of creating wrapper
classes
Posted by "Michael Greene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Greene updated CASSANDRA-246:
-------------------------------------
Component/s: Core
> Efficient way of creating wrapper classes
> -----------------------------------------
>
> Key: CASSANDRA-246
> URL: https://issues.apache.org/jira/browse/CASSANDRA-246
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Edward Ribeiro
> Assignee: Edward Ribeiro
> Fix For: 0.4
>
> Attachments: CASSANDRA-246.patch
>
>
> Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
> The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-246) Efficient way of creating wrapper
classes
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723057#action_12723057 ]
Hudson commented on CASSANDRA-246:
----------------------------------
Integrated in Cassandra #117 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/117/])
replace new Foo(...) with Foo.valueOf. patch by Edward Ribeiro; reviewed by jbellis for
> Efficient way of creating wrapper classes
> -----------------------------------------
>
> Key: CASSANDRA-246
> URL: https://issues.apache.org/jira/browse/CASSANDRA-246
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Edward Ribeiro
> Assignee: Edward Ribeiro
> Attachments: CASSANDRA-246.patch
>
>
> Instead of using new Integer(19), the best way of creating a wrapper class is Integer.valueOf(19) because it gives the JVM the chance to cache low range values, etc.
> The change affects two classes: AnalyticsContext and MetricRecord. The patch is attached to this issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.