[QUERY] AmqpReceiver DisposeMessagesAsync unnecessarily allocates #20166
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Before
Potential after
Shows a lot of
Guid.ToByteArray
allocations. They are coming fromazure-sdk-for-net/sdk/servicebus/Azure.Messaging.ServiceBus/src/Amqp/AmqpReceiver.cs
Line 446 in 7ad4f58
I see two ways to optimize this away:
Some samples
Here a benchmark of the effect
results
The text was updated successfully, but these errors were encountered: