csharp-driver icon indicating copy to clipboard operation
csharp-driver copied to clipboard

CSHARP-979 Improve data reading performance by inlining hot methods in RecyclableMemoryStream

Open marcin-krystianc opened this issue 3 years ago • 0 comments

As explained in the Jira ticket, these methods are executed a lot of times. After inlining them, I can see improvements of 3-5% in reading data. I know that it is a micro-optimisation that is rarely worth doing. However, in this case, it gives non-negligible performance improvements.

marcin-krystianc avatar Aug 24 '22 14:08 marcin-krystianc