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

Headers: use 1 array rather than 2

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.6.7
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                belaban Bela Ban
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: