DEV Community

Discussion on: What's the big deal with IAsyncEnumerable<T> in .NET Core 3.0?

Collapse
 
mohan5k profile image
MohanMaladi

Is there any way that u can show with stopwatch or with memory consumption matching, showing old vs new way is much efficient?

Collapse
 
carstenk_dev profile image
Carsten

I don't think it will be more efficient in that sense - it blocks less threads so your server can scale better (await more IO bound operations like the DB calls here)

If you use this for algorithms (CPU bound operations) the runtime will probably be worse (there surely is even more overhead than the one produced by async/awaits state machines)