diff --git a/quartz/build.gradle.kts b/quartz/build.gradle.kts index 168f83a41..d4ebb17ae 100644 --- a/quartz/build.gradle.kts +++ b/quartz/build.gradle.kts @@ -1,8 +1,6 @@ import com.vanniktech.maven.publish.KotlinMultiplatform import com.vanniktech.maven.publish.SourcesJar import org.jetbrains.kotlin.gradle.dsl.JvmTarget -import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.DEBUG -import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType.RELEASE import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest @@ -16,14 +14,6 @@ plugins { kotlin { compilerOptions { freeCompilerArgs.add("-Xexpect-actual-classes") - // Remove Kotlin null-check assertions on parameters, return values, and receivers. - // These generate invokestatic Intrinsics.checkNotNullParameter at the entry of every - // function that takes non-null reference types (~4,000+ calls per Schnorr verify). - // Safe for this module: all internal secp256k1 code uses non-null LongArray params - // that are never null. Each check costs ~2-3ns on ART, totaling ~8-12μs per verify. - freeCompilerArgs.add("-Xno-param-assertions") - freeCompilerArgs.add("-Xno-call-assertions") - freeCompilerArgs.add("-Xno-receiver-assertions") } jvm { compilerOptions {