-
Type: New Feature
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.7.0
-
Component/s: BSON, Json, Performance
The recently introduced Span<T> offers advantages, specifically obviating the need to deal with byte buffers in most cases. I started to use it in my code, too, but the C# driver's JsonWriter.WriteValue method won't accept Span<byte> and a span has to be converted to a byte array first, which results in a heap allocation: span.ToArray().
The driver should support this new .NET type so that we can use it without such unnecessary allocation penalties.
- depends on
-
CSHARP-2174 Use a single solution and set of project files to multi target .NET Framework and .NET Standard
- Closed
-
CSHARP-2400 Build Nuget packages from .csproj files instead of from .nuspec files
- Closed