You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dinesh Joshi (JIRA)" <ji...@apache.org> on 2018/04/09 20:29:00 UTC
[jira] [Comment Edited] (CASSANDRA-14260) Refactor pair to avoid
boxing longs/ints
[ https://issues.apache.org/jira/browse/CASSANDRA-14260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431173#comment-16431173 ]
Dinesh Joshi edited comment on CASSANDRA-14260 at 4/9/18 8:28 PM:
------------------------------------------------------------------
[~jjirsa] do you think it would be worthwhile making a defensive copy of {{liveEndpoints}} in the {{PaxosParticipants}} class? Other than this, everything else LGTM.
was (Author: djoshi3):
[~jjirsa] do you think it would be worthwhile making a defensive copy of {{liveEndpoints}} in the {{PaxosParticipants}} class?
> Refactor pair to avoid boxing longs/ints
> ----------------------------------------
>
> Key: CASSANDRA-14260
> URL: https://issues.apache.org/jira/browse/CASSANDRA-14260
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jeff Jirsa
> Assignee: Jeff Jirsa
> Priority: Minor
> Fix For: 4.x
>
>
> We uses Pair<X,Y> all over the place, and in many cases either/both of X and Y are primitives (ints, longs), and we end up boxing them into Integers and Longs. We should have specialized versions that take primitives.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org