Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-53952

[TC] [OBJUTIL] Reduce memory usage of 'Downloader' type

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • 7.1.0, 7.1.1
    • tools-common
    • None
    • 1

    Description

      What's the issue?
      Until recently, Golang didn't support copying from a 'Reader' to a 'Writer' at a given offset; it now does (or will do, very soon). We should use this functionality to reduce memory consumption caused by buffering. See this comment for more information.

      What's the fix?
      We should move over to the new 'io.OffsetWriter' instead of buffering the 'PartSize' write in memory.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty