Add WASM SIMD
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-03-19 21:42:06 -04:00
parent 8c22c9d35d
commit d678a9f90b
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

2
opt.sh
View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
wasm=dist/portfolio-*_bg.wasm wasm=dist/portfolio-*_bg.wasm
js=dist/portfolio-*.js js=dist/portfolio-*.js
wasm-opt -O2 --fast-math $wasm -o $wasm wasm-opt -O2 --fast-math --enable-simd $wasm -o $wasm
find dist/ \ find dist/ \
-name "*.js" -o \ -name "*.js" -o \
-name "*.pdf" -o \ -name "*.pdf" -o \