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

Reduce Task ContingentProperties heap allocations

    XMLWordPrintable

Details

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

    Description

      When a Task is started using Task.Run or Task.StartNew, the current ExcecutionContext is flowed to that task. To do so it allocates object arrays to store the information on the Task. In cases where we don't need the ExecutionContext (i.e. AsyncState<T> or SynchronizationContext) to flow we can improve performance by disabling this feature.

      Attachments

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

        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