kevin.cianfarini
09/13/2024, 1:08 PMkevin.cianfarini
09/13/2024, 1:22 PMkevin.cianfarini
09/13/2024, 3:07 PMtapchicoma
09/13/2024, 4:30 PMkevin.cianfarini
09/13/2024, 4:52 PMkevin.cianfarini
09/13/2024, 5:01 PMtapchicoma
09/13/2024, 9:04 PMIs it okay to open an issue that doesn't have any suggested remediation?Yes, we will check from our side what could be done here
Richard Leggett
09/16/2024, 1:15 PMIdeMultiplatformImportFactory
was adding ~17 resolvers, running for each of the 10 source sets that are applied by the default target hierarchy (commonMain/Test
, appleMain/Test
, iOS***Main/Test
, nativeMain/Test
)
Heap use dropped from 8-10gig to ~5.5gig by using kotlin.mpp.applyDefaultHierarchyTemplate=false
with the experimental applyHierarchyTemplate {}
applying only iOS and jvm()
targets to most modules, and androidTarget()
to UI modules.
This came with a bunch of config + build time benefits.Richard Leggett
09/16/2024, 1:18 PMcommonMain
, a couple of projects/modules use jvmMain
and a handful use androidMain
and iosMain
- no other source sets are used).tapchicoma
09/16/2024, 1:59 PMkevin.cianfarini
09/16/2024, 2:03 PMtapchicoma
09/16/2024, 2:04 PMkevin.cianfarini
09/16/2024, 2:08 PMRichard Leggett
09/16/2024, 4:24 PMRichard Leggett
09/16/2024, 4:25 PMRich, it might also be helpful to run a JFR profile with only the JVM target enabled with the default hierarchy as a baseline before you file that issueYeah, IIRC I did this and you got saw the expected drop, heap use was peaking at like 3.5/4g.
Anton Lakotka [JB]
09/17/2024, 9:36 AMRichard Leggett
10/01/2024, 9:59 AMiosMain()
for any native targets)..kevin.cianfarini
10/01/2024, 10:03 AMRichard Leggett
10/01/2024, 10:35 AMkevin.cianfarini
11/26/2024, 4:38 PMtapchicoma
11/26/2024, 4:45 PMRichard Leggett
11/26/2024, 4:46 PMkevin.cianfarini
11/26/2024, 4:50 PMkevin.cianfarini
11/26/2024, 5:12 PMCritical
severity! Thank you so much 🤯