Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1670

Use buffer pooling and copying return values to reduce memory allocation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.11.0
    • None
    • None
    • None

    Description

      Currently new byte slices are created every time Operation.Execute is called. We can reduce this by pooling the byte slices in the background and copying return values, which are usually subslices, into new slices before returning them, which will free up the original slice.

      Attachments

        Activity

          People

            qingyang.hu@mongodb.com Qingyang Hu
            rachelle.palmer@mongodb.com Rachelle Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: