Description
The current implementation of SlicedMemoryOwner<T>, which acts to slice an IMemoryOwner<T>, could be optimized by converting it to a structure. This would drop the heap allocation for the SlicedMemoryOwner<T>. This is particularly valuable for the operation responses, which get sliced twice and therefore have two extra heap allocations.
Attachments
For Gerrit Dashboard: NCBC-2776 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
144346,5 | NCBC-2776: Make SlicedMemoryOwner a structure | master | couchbase-net-client | Status: MERGED | +2 | +1 |