Investigate changes in Buffer.MemCopy to bring into Span.Clear
From PR dotnet/coreclr#9598
https://github.com/dotnet/coreclr/pull/9598#issuecomment-280528642
I see you copied some of the code from
Buffer.MemoryCopy... you may want to take a look at https://github.com/dotnet/coreclr/pull/9143 for the managed part of the implementation. It should be more efficient especially on AMD64 because it writes things out in 16/32/64-byte blocks and does not have the extra branches at the beginning/end to check for alignment. (For lengths >= 512/1024 it is probably better to stick to the native implementation.)
dotnet/coreclr#9143 has been superseded by dotnet/coreclr#9786
@joshfree @ahsonkhan Is this still on for .NET Core 2.0?
No, this can wait till 2.1.
cc @GrabYourPitchforks
Not sure what's being requested here. Span.Clear doesn't have alignment requirements and has already gone through an optimization pass.
Closing per @GrabYourPitchforks' comment.