Are flows/coroutines slow?
I am observing slow performance from coroutines/flows.
Here is the snippet
private suspend fun Collection.solve(context) = coroutineScope {
val channel = produce {
forEach {
launch { send(it.solve()) }
}
}
val result = ArrayList(size)
launch{
for (solution in channel) {
context.update(solution)
result.add(solution)
}
}
result
}
I have...