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

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.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:

Jeffry Morris February 12, 2024 at 8:44 PM

Thanks Brant!

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created February 10, 2024 at 5:38 PM
Updated March 8, 2024 at 12:15 AM
Resolved March 8, 2024 at 12:15 AM
Instabug