]
Bela Ban resolved JGRP-2123.
----------------------------
Resolution: Done
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