Fix JVM import caching and class/object bytecode dispatch

This commit is contained in:
sergeych committed 2026-04-21 23:25:07 +03:00
1 parent 953f237ca3
commit 0973a6afeb
5 files changed
+164 -74

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import lyng.time
val n = 700_000
fun tm<T>(block: ()->T): T {
val t = Instant()
block().also {
println("tm: ${Instant() - t}")
}
}
val x = tm { List.fill(n) { it * 10 + 1 } }
val y = tm { List.fill(n, n + 10) { it * 10 + 1 } }
tm { x.add(-1) }
tm { y.add(-2) }