We should really just use MemoryMarshal.Write, but the codegen is suboptimal, see sharplab
Looks like a simple addressing mode was not contained. It's just that this PR replaces one unsafe code with another unsafe (a tiny bit better, but still). These APIs allocate, it is unlikely an extra lea makes perf difference here
@jakobbotsch do we have an issue tracking this?
Originally posted by @xtqqczze in #112616 (comment)
@jakobbotsch do we have an issue tracking this?
Originally posted by @xtqqczze in #112616 (comment)