Xcode profiler on iOS Simulator, 5s wall time 😅
I need at least move that off the main thread.
😱 2
s
Sam
06/11/2019, 3:29 PM
Wall time?
m
Marc Knaup
06/11/2019, 3:29 PM
over the period of 5s in the real world I had 224ms main thread work just for KotlinInt boxing
s
Sam
06/11/2019, 3:37 PM
Is this in Kotlin Native, Android project or the back end? Kinda curious too if it all is coming from one call site or that's just something happening throughout the project.
m
Marc Knaup
06/11/2019, 3:38 PM
MPM project - iOS Simulator - Xcode profiler
but I think it's kotlinx.serialization at work here
Marc Knaup
06/11/2019, 3:38 PM
Unfortunately the profile doesn't seem to be able to show me any call sites
s
sandwwraith
06/11/2019, 4:18 PM
kotlinx.serialization shouldn't box anything, unless you have Int in some generic position (i.e.
Box<Int>
). But such boxes usually degrade performance everywhere