Hey! After investigating memory consumption <of my...
# ktor
m
Hey! After investigating memory consumption of my KMP+Ktor project, I have a general question: Do you see memory leaks in your ktor projects, or are bigger projects running fine with ktor
t
I was seeing Instruments report many API calls with Ktor 2.x as leaking memory. I recently moved to using the latest Ktor 3.x EAP and there are significantly fewer leaks. I would try that, ensuring nothing breaks for you of course.
e
Same experience here for 2.x. Have not tried 3.x
m
@tylerwilson @Eirik Vale Aase are there any non-leaking alternatives for networking with Kotlin? Or is the only non-leaking option to do networking Android/iOS-specific and bridge it to KMP?
And is also Android leaking or only iOS?
t
I did not test memory on Android. Testers have seen no issues there.
m
@tylerwilson interesting! how did you end up solving it for iOS?
t
Using Ktor 3.0.0-beta-2-eap-930
🙌 1
Be sure to use CMP 1.6.10-beta02 as well. Some fixes there improved things too.
👍 1
m
Will test that. Currently the leaks have no impact on UX/users - just me noticing them. As fallback I think providing the network via Swift should also not be too complex
Thx!