Blogged: Making foreach of an IEnumerable allocation-free, using reflection and dynamic methods
In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free
Blogged: Making foreach of an IEnumerable allocation-free, using reflection and dynamic methods
In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free
If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/andrewlock/statuses/115928325112530203 on your instance and quote it. (Note that quoting is not supported in Mastodon.)