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

ExposedByteArrayOutputStream / ExposedDataOutputStream: override synchronized methods

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.6.6, 2.7
    • None
    • None

      Both of these classes have synchronized methods. However, JGroups (mainly in TP) locks an output stream (both for single messages and in the bundler), so we don't need synchronized methods.
      SOLUTION: overwrite the synchronized methods with unsynchronized methods in ExposedXXXOutputStream.

      The perf.Test shows an increase of perf from 95'000 1K messages/sec/node to 99'000 !

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

                Created:
                Updated:
                Resolved: