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

Reduce heap allocations calling BucketAsync

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta.4
    • 3.0.0
    • library
    • None
    • 1

    Description

      Currently, calls to BucketAsync are creating some unnecessary heap allocations surrounding Tasks because the call actually returns synchronously but is returning Task objects. This method may be called hundreds of times a second in some scenarios, so removing the heap allocations from those calls using ValueTask should be very valuable.

      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