Microsoft.IO.RecyclableMemoryStream 2.3.1
New Feature:
- Stream lifetime (creation through dispose) is now tracked and reported through the
MemoryStreamDisposeEventSourceevent, as well as through theStreamDisposed.NET event.
Changes:
- The pool statistics used to be reported only when blocks/buffers were returned to the pool. This could lead to lopsided reporting patterns in some cases. Now, pool statistics are reported on stream creation and disposal.
- Added pool stats information to the
MemoryStreamDiscardBufferevent. - Changed events relating to buffer creation to be at the warning level instead of verbose. These are signals that the pool might not be large enough to handle the load.
Bug Fixes:
- Fixed allocation/finalization bug that could cause a
NullReferenceExceptionin some low-memory scenarios.
Internal:
- .NET 7 SDK used to build
- Changed coding style to match some newer patterns (and added .editorconfig file to enforce in the future)
- Fixed punctuation and spelling in API documentation.