Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3649

Every operation response allocates a temporary heap array the size of the response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.5.0
    • 3.4.11, 3.4.12, 3.4.13, 3.4.14, 3.4.15
    • library

    Description

      https://github.com/couchbase/couchbase-net-client/blob/aa48cd66f537a79ae6f4f5a7d603f7db2b0a5cc6/src/Couchbase/Core/IO/Connections/MultiplexingConnection.cs#L219

      This is allocating a temporary array on the heap the size of the entire operation body just to read a single byte. This is particularly problematic for large responses. We are incurring both a (potentially large) heap allocation and a memory copy operation.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty