Mark MemoryMarshal.Cast methods for aggressive inlining (#16654)
authorAndy Ayers <andya@microsoft.com>
Wed, 28 Feb 2018 15:23:16 +0000 (07:23 -0800)
committerJan Kotas <jkotas@microsoft.com>
Wed, 28 Feb 2018 15:23:16 +0000 (07:23 -0800)
commit355995e48e693ae0d0d21db5ba904bb87e0a0c1f
tree480e85ead653d4eb42aad3342d3898d224c972ff
parent29d5dc25ab6fd078cc349e7f7e21aaeacda59acc
Mark MemoryMarshal.Cast methods for aggressive inlining (#16654)

Inlining doesn't streamline the cast logic any, but it facilitates
caller struct promotion which can substantially boost perf.

See discussion in dotnet/corefx#27485.
src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.Fast.cs