Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2123

Replace Tuple<Long,V> with LongTuple<V>

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 4.0
    • None

      Tuples where keys are Long are used a lot. Oftentimes like this:

      Tuple<Long,Message> tuple=...;
      long id=...;
      Message msg=tuple.get(id);
      

      This results in a long getting boxed into a Long, each time allocating a new Long instance.

      Todo: create a new LongTuple<V> class

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: