Can somebody help me with a coroutines question. I was playing with something like shown in this gist:
https://gist.github.com/mvucenovic/65359381a578e37558370cdf4e03ed9e. While running this on i7 with 8 cores, compiled to jvm 1.8 as target, coroutine code defined inside 'async' block was ~10x faster then calling any function doing the same thing inside async block (~700ms vs 8000ms). I know measuring performance with main method is terrible idea, but the difference in execution time is enormous in this gist
Can somebody explain to me why is that happening?