fix to make it build on all platforms

This commit is contained in:
Sergey Chernov 2025-11-11 23:20:22 +01:00
parent d2a930c0e8
commit 28e8648794
4 changed files with 8 additions and 0 deletions

View File

@ -15,4 +15,6 @@ actual object PerfDefaults {
actual val PRIMITIVE_FASTOPS: Boolean = true actual val PRIMITIVE_FASTOPS: Boolean = true
actual val RVAL_FASTPATH: Boolean = true actual val RVAL_FASTPATH: Boolean = true
// Regex caching aligns with JVM behavior on Android (Dalvik/ART)
actual val REGEX_CACHE: Boolean = true
} }

View File

@ -16,4 +16,6 @@ actual object PerfDefaults {
actual val PRIMITIVE_FASTOPS: Boolean = true actual val PRIMITIVE_FASTOPS: Boolean = true
// Conservative default for non-JVM until validated // Conservative default for non-JVM until validated
actual val RVAL_FASTPATH: Boolean = false actual val RVAL_FASTPATH: Boolean = false
// Regex caching: disabled by default on JS until validated
actual val REGEX_CACHE: Boolean = false
} }

View File

@ -16,4 +16,6 @@ actual object PerfDefaults {
actual val PRIMITIVE_FASTOPS: Boolean = true actual val PRIMITIVE_FASTOPS: Boolean = true
// Conservative default for non-JVM until validated // Conservative default for non-JVM until validated
actual val RVAL_FASTPATH: Boolean = false actual val RVAL_FASTPATH: Boolean = false
// Regex caching: keep OFF by default on Native until benchmarks validate it
actual val REGEX_CACHE: Boolean = false
} }

View File

@ -16,4 +16,6 @@ actual object PerfDefaults {
actual val PRIMITIVE_FASTOPS: Boolean = true actual val PRIMITIVE_FASTOPS: Boolean = true
// Conservative default for non-JVM until validated // Conservative default for non-JVM until validated
actual val RVAL_FASTPATH: Boolean = false actual val RVAL_FASTPATH: Boolean = false
// Regex caching: disabled by default on WasmJS until validated
actual val REGEX_CACHE: Boolean = false
} }