Hi there,
The memory consumption in iphone is keeps on increasing and its not releasing as like android,
I have an use case wherein we open bottomsheetdialog with some ui components, when I open and close multiple times the memory consumption graph increase's as shown in below and after sometime with idle the memory get's released in case of
android but not
in iOS...
we already tried, below flags to make GC faster and clean up memory but nothing helped here...
//gradle.properties
kotlin.native.binary.mimallocUseCompaction=true
kotlin.native.binary.objcDisposeOnMain=false
-Xbinary=disableAllocatorOverheadEstimate=true
-Xallocator=mimalloc
kotlin.native.internal.GC.threshold=50
Xbinary=concurrentWeakSweep=true
kotlin.native.internal.GC.collect()=true
//build.gradle
configure(listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
)) {
this.compilations.configureEach {
compilerOptions.configure {
freeCompilerArgs.add("-Xallocator=mimalloc")
}
}
}