Stefan Oltmann06/08/2022, 2:57 PM
and it looks like that every Job started by
@SharedImmutable private val backgroundDispatcher: CoroutineDispatcher = Dispatchers.Default
runs on the same NSThread. I use
. The same code on JVM runs every job on another thread. Do I have to do something extra to get this parallel?
mkrussel06/08/2022, 3:03 PM
is single threaded on native, it's just a different thread than the main thread.
Stefan Oltmann06/08/2022, 3:04 PM
stands for *m*ulti*t*hreading 🙈
Mitchell Syer06/08/2022, 3:07 PM
and use the new memory model https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md
Stefan Oltmann06/08/2022, 3:09 PM
... I want to ship my app in a few weeks and right now I try to tune performance.
only for evaluation purposes
xiaobailong2406/08/2022, 5:51 PM
Stefan Oltmann06/09/2022, 6:49 AM
xiaobailong2406/09/2022, 10:17 AM
Stefan Oltmann06/09/2022, 10:21 AM
xiaobailong2406/13/2022, 3:33 PM
Stefan Oltmann06/13/2022, 8:03 PM
to load some work like metadata extraction and thumbnail creation to multiple NSThreads. I tried the normal variant (without experimental support), but that one does not work at all. So I'm now in the situation where I can't multithread anything that is related to REST API communication (since KTor doesn't work), but I can speed up some of the other things. I guess for my first release this will have to be good enough and as soon as the new memory model becomes production ready I can solve the rest of my performance issues. Again, thank you for your help.