Does async and await incease performance of an ASP.Net application
Posted
by
Kerezo
on Stack Overflow
See other posts from Stack Overflow
or by Kerezo
Published on 2012-03-26T05:24:54Z
Indexed on
2012/03/26
5:29 UTC
Read the original article
Hit count: 139
I recently read a article about c#-5
and new $ nice asynchronous programming. I see it works greate in windows application. The question came to me before is if this feature can increase ASP.Net performance?
consider this code:
public T GetData()
{
var d = GetSomeData();
return d;
}
and
public async T GetData2()
{
var d = await GetSomeData();
return d;
}
Has in an ASP.Net appication that two codes difference?
thanks
© Stack Overflow or respective owner