I'm working on a UWP app where it's important to reduce the size of the app. Recently, I discovered that simply adding 6 await
statements increased the .dll
size by 20KB which I thought was an unexpectedly large amount but made sense when I realized that async
/await
generates a lot of state machine code.
What techniques or patterns are available in C# and .NET Core to reduce the size of my binaries? I'm assuming that code reuse would be high up on that list.