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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: