Does async and await increase performance of an ASP.Net application

前端 未结 5 1317
梦如初夏
梦如初夏 2020-12-11 15:31

I recently read an article about c#-5 and new & nice asynchronous programming features . I see it works greate in windows application. The question came to

5条回答
  •  孤街浪徒
    2020-12-11 15:46

    It would only increase performance if you needed to do multiple things, that can all be done without the need for any other information. Otherwise you may as well just do them in sequence.

    In terms of your example, the answer is no. The page needs to wait for each one regardless.

提交回复
热议问题