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

eygraber

06/15/2018, 8:45 AM
I'm still trying to wrap my head around coroutines, and I think I'm almost there. I'm thinking about it in terms of comparison to Rx. Is it safe to say that the practical differences there are: 1. Natural coding style vs streams/operators 2. Less allocation A. Therefore lower memory usage B. Therefore potential faster execution (less GC)
e

elizarov

06/15/2018, 12:23 PM
1,1 and 1. The second item is non-goal in itself. One cannot say that “Coroutines have less allocations” or vice versa. It all depends on how well a specific (particular) case / code is optimized.
2 Views