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

NAKACK2: up(MessageBatch) should add batch to table directly

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.2
    • None
    • None
    • False
    • False

      Currently, up(MessageBatch batch) creates a list of all messages plus their seqnos and calls Table.add(List). This temporary list creation causes memory allocation; to avoid it, we can create a method Table.add(MessageBatch) and pass the batch directly to the table. This saves 1 memory allocation on each up(MessageBatch) call.
      The method to add a MessageBatch must have a parameter function which extracts the seqno given a Message.

              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: