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

Avoid heap allocations for default K/V operations

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • library
    • None
    • 1

    Description

      Currently, when a K/V operation is executed with null for the XXXOptions, a new XXXOptions is instantiated with defaults. This could be optimized to use a static default instance to avoid the extra heap allocation.

      Note that we may want to implement some immutability to avoid accidentally mutating the defaults.

      Attachments

        For Gerrit Dashboard: NCBC-2769
        # Subject Branch Project Status CR V

        Activity

          There are no comments yet on this issue.

          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