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

Reduce heap allocations calling BucketAsync

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.0.0
    • 3.0.0-beta.4
    • 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

        Activity

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty