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

RpcDispatcher: use ObjectMessage

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        Activity

          People

            rhn-engineering-bban Bela Ban
            rhn-engineering-bban Bela Ban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: