Skip to content

Commit ff4ee48

Browse files
more benchmark work
1 parent c22d93b commit ff4ee48

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

benchmarks/compose-workflow/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id("com.android.library")
3-
id("org.jetbrains.kotlin.android")
3+
id("kotlin-android")
44
id("android-defaults")
55
}
66

workflow-runtime/src/jvmMain/kotlin/com/squareup/workflow1/internal/compose/runtime/SerializableSaveableStateRegistry.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ private fun ByteString.toMap(): Map<String, List<Any?>>? {
6161
}
6262

6363
private fun Map<String, List<Any?>>.writeTo(sink: BufferedSink) {
64-
sink.writeInt(values.size)
65-
val outputStream = ObjectOutputStream(sink.outputStream())
66-
values.forEach { (key, list) ->
67-
val arrayList = if (list is ArrayList<Any?>) list else ArrayList(list)
68-
sink.writeUtf8WithLength(key)
69-
outputStream.writeObject(arrayList)
70-
outputStream.flush()
71-
}
64+
// sink.writeInt(values.size)
65+
// val outputStream = ObjectOutputStream(sink.outputStream())
66+
// values.forEach { (key, list) ->
67+
// val arrayList = if (list is ArrayList<Any?>) list else ArrayList(list)
68+
// sink.writeUtf8WithLength(key)
69+
// outputStream.writeObject(arrayList)
70+
// outputStream.flush()
71+
// }
7272
}

0 commit comments

Comments
 (0)