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

Headers: use 1 array rather than 2

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.6.7
    • None
    • None

    Description

      Currently, Headers uses 1 array for ids and 1 for the actual headers. Experiment whether joining them into one array makes sense, e.g.:

      | id-1 | hdr-1 | id-2 | hdr-2 | ... | id-n | hdr-n |
      

      This saves 4 bytes (compressed OOPs) for an array ref, plus the overhead of the array itself. Plus, resizing only has to be applied to 1 array.

      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: