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