I have stumbled on a performance anomaly while testing KMP arbitrary precision integer HugeInt.
With my config, macosX64 is 100x slower than jvm, 50x slower than js & wasm at calculating HugeInt.factorial(10k), both in IntellJ and from the command line ./gradlew
It isn't garbage collection, because the IntArray is mutated in-place.
Maybe its' me ... I'm stumped. Ping me if this is something you want to pursue.