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
    • Resolution: Fixed
    • Major
    • 3.2.3
    • 3.2.2
    • 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

        For Gerrit Dashboard: NCBC-2970
        # 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