This ticket is to trace the PR https://github.com/mongodb/mongo-go-driver/pull/1200
, which:
- Modified around Operation.decompressWireMessage to eliminate duplicate memory allocation;
- Reused zlib.Writer;
- Removed unused parameter of ReadWireMessage in the interface of driver.Connection.