Hey team :wave: On the CMP, There is huge increase...
# compose-ios
o
Hey team 👋 On the CMP, There is huge increase in cpu usage
m
What is your setting - edit scheme -> diagnostic
t
182% seems like a lot. Check your recomposition graph and see if any wasted compositions are happening or if there are any infinite recompositions
🙌 1
m
Memory and cpu both are very high. In my observation memory goes up by 20-40% and cpu by 10-20%. Make sure: Mallock stack logging & thread senitizer are off in edit scheme -> diagnostics Also check recomposition and leaks in page as suggested by @Tanish Azad For me on pro max it goes up by 70-80mb and on iPhone SE by 30-35mb. https://youtrack.jetbrains.com/projects/CMP/issues/CMP-8458/Compose-Multiplatform-Consumes-Excessive-Memory-in-iOS-Apps
🙌 1
o
with the current numbers is it too bad? to prodction 600mb
🙌 1
m
In this case looklike some code issue not in cmp. You may need to debug further
y
I think this is pretty normal with CMP
Especially for ios projects/builds
I was suffering from heavy memory drought when building ios on my mbp m1 pro/16 gigs
upgrading to M5/32 gigs helped me very much
its very sad but we can do nothing about it
t