2 years ago I went OCD on memcpy/memmove; and wrote over 140 variations (80,000 lines of code) of memmove; testing, disassembling, optimizing and benchmarking them on multiple machines. I never released the article or the code; until now! So I need to do it before I loose my mind!
This Article discusses on Memory allocation in .Net and how JIT compiler optimizes non-volatile code. It also talk about Value Type, Reference type, Stack, Heap, Boxing, Unboxing, Ref, Out and Volatile.
Intensive Big Data processing and Mobile Applications require fast calculations and compact data storage. Design of new quick and save .NET types with small overhead is not a simple task. This article describes creating of such type without overhead and with advantages only.