From 3f08b5b54a0e82aa742461c83bebb864b8846942 Mon Sep 17 00:00:00 2001 From: spinline Date: Sun, 8 Feb 2026 18:03:52 +0300 Subject: [PATCH] =?UTF-8?q?perf:=20WASM=20boyut=20takibi=20loglara=20eklen?= =?UTF-8?q?di=20ve=20profil=20=C3=A7ak=C4=B1=C5=9Fmalar=C4=B1=20giderildi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-mips.yml | 12 ++++++++---- frontend/Cargo.toml | 9 +-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build-mips.yml b/.gitea/workflows/build-mips.yml index 82ba30c..83f2312 100644 --- a/.gitea/workflows/build-mips.yml +++ b/.gitea/workflows/build-mips.yml @@ -30,11 +30,15 @@ jobs: npx @tailwindcss/cli -i input.css -o public/tailwind.css trunk build --release - # Manuel WASM Optimizasyonu (Trunk'ın yapamadığını biz yapıyoruz) - # --all-features kullanarak tüm modern özellikleri tanımasını ve en küçük boyutu üretmesini sağlıyoruz. - WASM_FILE=$(ls dist/*.wasm) - echo "Optimizing $WASM_FILE..." + # Manuel WASM Optimizasyonu + WASM_FILE=$(ls dist/*.wasm | head -n 1) + BEFORE=$(du -h "$WASM_FILE" | cut -f1) + echo "Before optimization: $BEFORE" + wasm-opt --all-features -Oz "$WASM_FILE" -o "$WASM_FILE" + + AFTER=$(du -h "$WASM_FILE" | cut -f1) + echo "After optimization: $AFTER" echo "Optimization complete!" - name: Build Backend (MIPS) diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index 94e43c1..de122cc 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -51,11 +51,4 @@ web-sys = { version = "0.3", features = [ ] } shared = { path = "../shared" } tailwind_fuse = "0.3.2" -js-sys = "0.3.85" - -[profile.release] -opt-level = "z" -lto = true -codegen-units = 1 -panic = "abort" -strip = true \ No newline at end of file +js-sys = "0.3.85" \ No newline at end of file