Asynchronous Fast Way

Here's an article on how an Async CTP update can use the asynchronous "fast path" .

It mentions things like high performance, etc., but I don’t even know what the “fast track” is? I would like to determine if the tips in the article are consistent, but could not find an explanation of the "quick path" ?

+6
source share
2 answers

The "fast path" is when the expected Task already completed by the time it is waiting.

If this happens, then there is no point in await returning from your method, because the next continuation will be immediately queued.

Thus, in the fast path, await not executed, and execution continues in your method.

+7
source

Perhaps I am mistaken, but my understanding here is that the “fast path” is a scenario when the task is completed already in the place you want to continue. Since it has already been completed, many overheads in setting up the continuation and exiting the current method can be avoided.

+1
source

Source: https://habr.com/ru/post/905394/


All Articles