Тонкости использования ref struct при работе с асинхронными методами.
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
https://blogs.endjin.com/2020/03/high-performance-c-a-test-pattern-for-ref-structs
#ref #struct #async
Endjin
High-performance C#: a test pattern for ref structs | endjin
C# 7.2 introduce ref structs, a new kind of type (Span is a ref struct) designed to support certain high performance scenarios. There are constraints around their use, and when writing unit tests for our Ais.Net parser, this caused some challenges. This blog…
Необычные оптимизации: ref foreach и ref returns
https://devdigest.today/goto/1952
#optimization #ref #foreach #returns
https://devdigest.today/goto/1952
#optimization #ref #foreach #returns
Marcgravell
Unusual optimizations; ref foreach and ref returns
A really interesting feature quietly slipped into C# 7.3 - interesting to me, at least - but which I’ve seen almost no noise about. As I’ve ...