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

Unnecessary allocation in classes implementing IOperation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 3.1.1
    • 3.0.5
    • library
    • None
    • 1
    • SDK 44: Txns, SDK 3.1, Docs
    • High

    Description

      all the implementations do something like this:
      public List<RetryReason> RetryReasons { get; set; } = new List<RetryReason>();
      public IRetryStrategy RetryStrategy { get; set; } = new BestEffortRetryStrategy(new ControlledBackoff());

      • most operations never need these properties
      • they could be singletons as they dont appear to store any per operation state.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            tommyja Tommy Jakobsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty