From 7535355e504215cc2748251593f58f5f035e50af Mon Sep 17 00:00:00 2001 From: ishandhanani Date: Tue, 7 Apr 2026 10:24:25 -0700 Subject: [PATCH] fix: use maturin build --release for dynamo source installs Debug builds (`maturin build` without `--release`) produce binaries that are ~40% slower than release-optimized pip wheels, causing misleading benchmark comparisons. Also removes `-C target-cpu=native` which caused a separate release-mode bug with /v1/completions streaming. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/srtctl/core/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/srtctl/core/schema.py b/src/srtctl/core/schema.py index 97547fec..d9907304 100644 --- a/src/srtctl/core/schema.py +++ b/src/srtctl/core/schema.py @@ -727,8 +727,8 @@ def get_install_commands(self) -> str: "cd dynamo && " f"{checkout_cmd + ' && ' if checkout_cmd else ''}" "cd lib/bindings/python/ && " - 'export RUSTFLAGS="${RUSTFLAGS:-} -C target-cpu=native --cfg tokio_unstable" && ' - "maturin build -o /tmp && " + 'export RUSTFLAGS="${RUSTFLAGS:-} --cfg tokio_unstable" && ' + "maturin build --release -o /tmp && " "pip install /tmp/ai_dynamo_runtime*.whl && " "cd /sgl-workspace/dynamo/ && " "pip install -e . && "