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

Headers: use 1 array rather than 2

XMLWordPrintable

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

      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.

              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: