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

LEB128 algorithm performs unnecessary heap allocations

    XMLWordPrintable

Details

    • 1

    Description

      The current approach allocates a List<byte>, builds the result, allocates a byte[] and copies to it (via .ToArray()), and then takes that and copies it to a segment of another byte[]. That's two heap allocations and one additional bit blit that are unnecessary. The algorithm can instead write directly to the target array.

      Attachments

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