[K/JS] Implement an incremental compilation for the per-file granularity

This commit is contained in:
Artem Kobzar
2023-07-19 15:57:56 +00:00
committed by Space Team
parent fd07f7f43c
commit 044c0adae7
185 changed files with 3530 additions and 513 deletions
@@ -216,6 +216,9 @@ public fun cityHash64(s: ByteArray, pos: Int = 0, len: Int = s.size): ULong {
fun String.cityHash64(): Long =
cityHash64(this.toByteArray()).toLong()
fun String.cityHash64String(): String =
cityHash64(this.toByteArray()).toString(Character.MAX_RADIX)
data class Hash128Bits(val lowBytes: ULong = k0, val highBytes: ULong = k1) {
private infix fun ULong.combineHash(other: ULong) = other xor (this + kGoldenRatio + (other shl 12) + (other shr 4))