ribesg
10/07/2022, 11:01 AMribesg
10/07/2022, 11:06 AMribesg
10/07/2022, 12:14 PMribesg
10/07/2022, 12:16 PMStringBuilder.setLength
. There is only one StringBuilder
var
that gets replaced though, so I'm not sure how it could lead to this kind of memory usage. It's somehow not freedribesg
10/07/2022, 12:18 PMPaddy O'Brien
10/07/2022, 1:17 PMPaddy O'Brien
10/07/2022, 1:19 PMPaddy O'Brien
10/07/2022, 1:19 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile).all {
kotlinOptions.freeCompilerArgs += [
"-Xallocator=std"
]
}
Paddy O'Brien
10/07/2022, 1:20 PMribesg
10/07/2022, 1:35 PMPaddy O'Brien
10/07/2022, 1:37 PMribesg
10/07/2022, 1:39 PMribesg
10/07/2022, 1:40 PMPaddy O'Brien
10/07/2022, 1:40 PMPaddy O'Brien
10/07/2022, 1:40 PMribesg
10/07/2022, 1:40 PMPaddy O'Brien
10/07/2022, 1:41 PMribesg
10/07/2022, 1:41 PMPaddy O'Brien
10/07/2022, 1:42 PMribesg
10/07/2022, 1:43 PMribesg
10/07/2022, 1:43 PMribesg
10/07/2022, 1:43 PMPaddy O'Brien
10/07/2022, 1:44 PMPaddy O'Brien
10/07/2022, 1:44 PMribesg
10/07/2022, 1:44 PMribesg
10/07/2022, 1:45 PMPaddy O'Brien
10/07/2022, 1:45 PMribesg
10/07/2022, 1:47 PMsetLength
. So it basically recreated it thousands of times, dealing with payloads of a up to a few MBs… 💥ribesg
10/07/2022, 1:48 PM