Reduce memory usage on compressed loads

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 1.12.0, 1.11.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      This ticket is to trace the PR https://github.com/mongodb/mongo-go-driver/pull/1200

      , which:

      1. Modified around Operation.decompressWireMessage to eliminate duplicate memory allocation;
      2. Reused zlib.Writer;
      3. Removed unused parameter of ReadWireMessage in the interface of driver.Connection.

            Assignee:
            Qingyang Hu
            Reporter:
            Qingyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: