https://kotlinlang.org logo
#coroutines
Title
# coroutines
z

zarkopafilis

10/27/2017, 8:58 AM
Hello, does anyone know best case register # swaps that need to happen in order to switch from 2 coroutines multiplexed on the same running thread?
e

elizarov

10/27/2017, 9:30 AM
Can you clarify your question, please?
I got the question (from general). The answer is that it does not really matter. The switch from coroutine from coroutines is just like a function invocation and it all boils down to JVM on how efficiently it is implemented. What does matter is how fast your partcular use-cases run. What do you do with coroutines? Try measure than and compare.
3 Views