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

RpcDispatcher: use ObjectMessage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 5.0.0.Beta2
    • None
    • None

      When invoking RPCs, RpcDispatcher converts the MethodCall used into a byte array and passes that to a BytesMessage that's then sent down to the transport.

      This is inefficient, as an unneeded byte array allocation is done, both when an RPC request is sent and when the response is sent.

      Instead of doing eager marshalling of MethodCall into a byte array, pass the MethodCall to an ObjectMessage, which marshalls the latter directly to the output stream of the transport at send time.

      This eliminates 2 memory allocations per RPC round-trip (on a sync RPC).

              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: