async ValueTask gives performance improvement


Instead of using Task, might be good that add a value in what we call by calling ValueTask. It's suppose to be faster. Hopefully i can get some numbers out here.

Essentially to call it, just simply use the followings :-

async ValueTask TestValueTask(int d)
{
    await Task.Delay(d);
    return 10;
}

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm