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

Change SlicedMemoryOwner to a structure

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.1.0
    • library
    • None
    • 1

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty