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

GossipRouter: cache output streams for serialization

XMLWordPrintable

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

      When using GossipRouter with TCP (not TCP_NIO2), a request is read and then a ByteArrayDataOutputStream is created to route the request as a byte array to other members. This is done every time, thus memory allocation ensues.
      Instead, we could cache a ByteArrayDataOutputStream for each sender, and therefore avoid memory allocation.

              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: