Hello,
I'm working on a project that has a lot of RxJava, but we want to migrate to coroutines and Flow. So far I find that the two have nice interoperability. However I was wondering: does it make sense to set coroutines dispatchers as default Rx Schedulers through RxJavaPlugins by using Dispatcher.asScheduler? Is there a significant overhead if we don't? The project is an Android app
b
bezrukov
11/21/2022, 7:12 AM
We do that. Perf improvement depends on your actual use case. E.g. you may see perf gain if you heavily use rx.computation/coroutines.default so you will improve cpu starvation
d
dephinera
11/21/2022, 7:32 AM
We do i/o mostly, so I guess the question is whether it is still justifiable to use the dispatchers as schedulers as well. Are there any risks in that?