ankushg
10/22/2021, 8:33 PMlinkReleaseFramework<Target>
tasks (KotlinNativeLink
) are starting late in the build and executing serially, even though there are plenty of idle workers available.
Things got much worse once we added M1 support since there was now yet another framework to link š
The KotlinNativeLink
tasks don't seem to depend on each other in any way.
Are these tasks supposed to be able to run in parallel? If so, how can I find out why they aren't for our builds? If not, is there a YT ticket for this?
Screenshot/description of build scan timeline in š§µankushg
10/22/2021, 8:49 PMiosArm64
doesn't start linking until after JS and JVM have already finished their entire compilations
⢠iosSimulatorArm64
only starts linking once iosArm64
has completed (even though 3/4 of the workers are sitting idle)
⢠iosX64
doesn't start linking until iosSimulatorArm64
has completed either -- still with three idle workersankushg
10/23/2021, 12:02 AMyou can force Gradle to execute tasks in parallel as long as those tasks are in different projects.so there doesn't seem to be a way to parallelize those tasks since they're all part of the same project š
rnett
10/23/2021, 12:09 AMrnett
10/23/2021, 12:09 AMankushg
10/23/2021, 12:12 AMkotlin.parallel.tasks.*in.project*
flag, but it was deprecated and we're supposed to use the normal gradle --parallel
flag (which is what the docs say requires the tasks to be in different projects)rnett
10/23/2021, 10:19 PMtapchicoma
10/25/2021, 8:34 AMtapchicoma
10/25/2021, 8:48 AMkotlin.parallel.tasks.in.project
flag value and does not utilize Gradle workers for link*
tasks.
Please open a new issue to improve this part.ankushg
10/25/2021, 5:04 PMPaul Woitaschek
11/11/2021, 7:21 PMPaul Woitaschek
11/11/2021, 7:22 PMankushg
11/11/2021, 8:08 PMPaul Woitaschek
11/11/2021, 8:09 PMPaul Woitaschek
11/11/2021, 8:09 PMPaul Woitaschek
11/11/2021, 8:10 PMankushg
11/11/2021, 8:10 PMAll tasks run in parallel by default.
Paul Woitaschek
11/11/2021, 8:10 PMPaul Woitaschek
11/11/2021, 8:11 PMankushg
11/11/2021, 8:11 PMPaul Woitaschek
11/11/2021, 8:11 PMmbonnin
11/11/2021, 8:11 PMPaul Woitaschek
11/11/2021, 8:12 PMPaul Woitaschek
11/11/2021, 8:12 PMPaul Woitaschek
11/11/2021, 8:13 PMPaul Woitaschek
11/11/2021, 8:14 PMPaul Woitaschek
11/11/2021, 8:16 PMPaul Woitaschek
11/11/2021, 8:18 PM