Compare commits

..

1 Commits

Author SHA1 Message Date
spinline
3f08b5b54a perf: WASM boyut takibi loglara eklendi ve profil çakışmaları giderildi
All checks were successful
Build MIPS Binary / build (push) Successful in 4m27s
2026-02-08 18:03:52 +03:00
2 changed files with 9 additions and 12 deletions

View File

@@ -30,11 +30,15 @@ jobs:
npx @tailwindcss/cli -i input.css -o public/tailwind.css npx @tailwindcss/cli -i input.css -o public/tailwind.css
trunk build --release trunk build --release
# Manuel WASM Optimizasyonu (Trunk'ın yapamadığını biz yapıyoruz) # Manuel WASM Optimizasyonu
# --all-features kullanarak tüm modern özellikleri tanımasını ve en küçük boyutu üretmesini sağlıyoruz. WASM_FILE=$(ls dist/*.wasm | head -n 1)
WASM_FILE=$(ls dist/*.wasm) BEFORE=$(du -h "$WASM_FILE" | cut -f1)
echo "Optimizing $WASM_FILE..." echo "Before optimization: $BEFORE"
wasm-opt --all-features -Oz "$WASM_FILE" -o "$WASM_FILE" wasm-opt --all-features -Oz "$WASM_FILE" -o "$WASM_FILE"
AFTER=$(du -h "$WASM_FILE" | cut -f1)
echo "After optimization: $AFTER"
echo "Optimization complete!" echo "Optimization complete!"
- name: Build Backend (MIPS) - name: Build Backend (MIPS)

View File

@@ -51,11 +51,4 @@ web-sys = { version = "0.3", features = [
] } ] }
shared = { path = "../shared" } shared = { path = "../shared" }
tailwind_fuse = "0.3.2" tailwind_fuse = "0.3.2"
js-sys = "0.3.85" js-sys = "0.3.85"
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true