Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13804

Java thin: avoid buffer copies in synchronous operations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.13
    • thin client
    • None
    • Java thin: reduced memory usage by avoiding extra buffer copy.
    • Release Notes Required

    Description

      org.apache.ignite.internal.client.thin.TcpClientChannel#send creates a buffer copy, because the buffer will be returned to the pool upon leaving the scope, but we need it to survive longer while NIO framework processes it.

      However, for synchronous requests we block the thread anyway, so an extra copy can be avoided. See discussion in #8483

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              ptupitsyn Pavel Tupitsyn
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m