Skip to content

Commit

Permalink
chore: log old/new size when compiling wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed Sep 6, 2020
1 parent fb4f331 commit 3659d96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/createWasmForLang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ echo "$LANG\c" > ./lang/$LANG/src/lang.txt

echo '(E) compile WASM-Module'
cd ./lang/$LANG/src/
OLDSIZE=$(wc -c ../$LANG.wasm)
asc hyphenEngine.ts -O3z --converge --runtime none --noExportMemory --transform ./mytransform.js -b ../$LANG.wasm

NEWSIZE=$(wc -c ../$LANG.wasm)
echo "(F) install $LANG"
cd ../../../
cp ./lang/$LANG/$LANG.wasm ./patterns/$LANG.wasm
echo "size before: $OLDSIZE"
echo "size now: $NEWSIZE"

0 comments on commit 3659d96

Please sign in to comment.