[jboss-jira] [JBoss JIRA] (JGRP-2123) Replace Tuple<Long, V> with LongTuple<V>
Bela Ban (JIRA)
issues at jboss.org
Thu Nov 3 08:25:00 EDT 2016
Bela Ban created JGRP-2123:
------------------------------
Summary: 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
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