Azure / azure-service-bus-dotnet

☁️ .NET Standard client library for Azure Service Bus
https://azure.microsoft.com/services/service-bus
Other
235 stars 120 forks source link

Efficient stream management #667

Open Yonisha opened 5 years ago

Yonisha commented 5 years ago

AmqpMessageConverter class initializes new memory stream (line 229) to convert copy streams. This is inefficient in terms of memory as many streams needs to be allocated. Usage of MSFT's RecyclableMemoryStream improves the memory utilization by reusing streams and intended to be a drop-in replacement