3 ms·
The List. Add change is small but its hand optimized assembly, quite impressive.
by yread 9y ago
The List. Add change is small but its hand optimized assembly, quite impressive.
- hacker_9 9y agoWorth noting it's not hand written assembly, but instead writing C# code in a very specific way in order to encourage the compiler to implement more aggressive optimizations (inlining, bounds check removals, etc).