apache / pulsar-client-go

Apache Pulsar Go Client Library
https://pulsar.apache.org/
Apache License 2.0
659 stars 336 forks source link

improve: use chan *message instead of chan []*message as queueCh #1283

Closed nodece closed 1 month ago

nodece commented 2 months ago

Motivation

We currently use chan []*message as queueCh, and use the slice to stage the messages to send the message to the parent consumer, this will result in excessive use of memory.

This PR optimizes potentially reducing overall memory overhead.

Modifications