Details
-
New Feature
-
Status: Backlog
-
Minor - P4
-
Resolution: Unresolved
-
2.7.0
-
None
-
None
-
Fully Compatible
Description
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.
Attachments
Issue Links
- 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
-