How Does Task in C# Affect Performance?

added by DotNetKicks
12/18/2017 1:37:42 PM

2 Kicks, 323 Views

When I talk about using Task (and await -- which is a wrapper around Task), often there's a question about performance. The concurrent nature of Task means that there is some overhead. We don't get these things for free. The good news is that the cost is negligible for the types of things we generally deal with in user space.