[jboss-jira] [JBoss JIRA] (JGRP-2123) Replace Tuple<Long, V> with LongTuple<V>
Bela Ban (JIRA)
issues at jboss.org
Thu Nov 10 06:00:00 EST 2016
[ https://issues.jboss.org/browse/JGRP-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban updated JGRP-2123:
---------------------------
Labels: Beta3 (was: )
> Replace Tuple<Long,V> with LongTuple<V>
> ---------------------------------------
>
> Key: JGRP-2123
> URL: https://issues.jboss.org/browse/JGRP-2123
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Labels: Beta3
> Fix For: 4.0
>
>
> Tuples where keys are Long are used a lot. Oftentimes like this:
> {code:java}
> Tuple<Long,Message> tuple=...;
> long id=...;
> Message msg=tuple.get(id);
> {code}
> This results in a {{long}} getting boxed into a {{Long}}, each time allocating a new Long instance.
> Todo: create a new LongTuple<V> class
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list