Skip to content

Microsoft.IO.RecyclableMemoryStream 1.3.0

Choose a tag to compare

@benmwatson benmwatson released this 18 Oct 16:01
· 249 commits to master since this release
9c3c38c

A long-awaited update, this release adds a number of new features, fixes bugs, and is more interoperable with .NET Core.

NuGet: Microsoft.IO.RecyclableMemoryStream

Bug Fixes

  • Removed a buggy and unnecessary boundary check in Write methods.

Performance

  • Removed LINQ iteration in some properties.
  • Overloads of Read, SafeRead, and Write that accept Span arguments (.NET Core and .NET Standard targets only)

Functionality

  • New buffer allocation strategy: exponential. Instead of linearly increasing large buffer sizes by a fixed multiple (say, 1MB), you can choose to have it increase exponentially in size, starting with smaller large buffers. This will allow you more efficient use of space, especially in smaller heap scenarios where you don't have gobs of memory to keep in a pool. We use this in Bing in some data centers that are more resource constrained than others.
  • New targets for .NET Framework 4.6, .NET Standard 2.1
  • Overload for TryGetBuffer, introduced in .NET Framework 4.6.
  • Allow the Stream's GUID to be set explicitly

Meta

  • Removed CBT build support files. Using dotnet.exe to build now.
  • Added public key for delayed signing during build
  • Consolidate and updated all NuGet package settings in the .csproj file.
  • Added setting for generating a NuGet package for symbols (.snupkg)