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

Improve performance of op completion using UnsafeQueueUserWorkItem

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.2
    • 3.2.3
    • library
    • None
    • 1

    Description

      We're using Task.Run to queue the completion of operations on the global queue. However, since we don't use the returned Task this is adding a lot of unnecessary overhead. We can use UnsafeQueueUserWorkItem instead to queue on the global queue instead. Using the Unsafe variant also emulates the behavior of ExecutionContext.SuppressFlow but more efficiently.

      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