Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
3.1.1
-
None
-
None
-
1
Description
We can reduce heap allocations for operations by not allocating a TaskCompleteSource and Task for every operation (times the number of attempts for retries). Instead, we can use ValueTask and IValueTaskSource, keeping the required fields on the OperationBase object already allocated using the ManualResetValueTaskSourceCore structure.
Attachments
For Gerrit Dashboard: NCBC-2808 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
144673,2 | NCBC-2808: Use ValueTask and IValueTaskSource for OperationBase.Completed | master | couchbase-net-client | Status: MERGED | +2 | +1 |