[GODRIVER-2778] Reduce memory usage on compressed loads Created: 17/Mar/23  Updated: 28/Oct/23  Resolved: 23/Mar/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.12.0, 1.11.4

Type: Improvement Priority: Unknown
Reporter: Qingyang Hu Assignee: Qingyang Hu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

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?


 Description   

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.


 Comments   
Comment by Githook User [ 04/Apr/23 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2778 Reduce memory usage on compressed loads. (#1200)
Branch: release/1.11
https://github.com/mongodb/mongo-go-driver/commit/b6bdeda3564d13b052679cecac8e4c3cf372d472

Comment by Githook User [ 23/Mar/23 ]

Author:

{'name': 'Qingyang Hu', 'email': '103950869+qingyang-hu@users.noreply.github.com', 'username': 'qingyang-hu'}

Message: GODRIVER-2778 Reduce memory usage on compressed loads. (#1200)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/785bf9b23e6bfa929066ca5aa3d9f7166d377d8e

Generated at Thu Feb 08 08:39:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.