better optimize wasm/js version

`-Os` is extremely slow, while `-O3` is pretty speedy.
This commit is contained in:
Jeff Epler 2021-11-29 08:41:38 -06:00
parent 1fc25071ae
commit 7a56665300
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -37,7 +37,7 @@ all: ana python dict.bin
python: ana.so
ana.js: $(wildcard *.cc) $(wildcard *.h) Makefile words
em++ -Os --bind -std=c++11 -s TOTAL_MEMORY=33554432 --preload-file words -DANA_AS_JS run.cc -o ana.js
em++ -flto -O3 -g --bind -std=c++11 -s TOTAL_MEMORY=33554432 --preload-file words -DANA_AS_JS run.cc -o ana.js
words:
LANG=C.UTF-8 grep '^[a-z]*$$' /usr/share/dict/words > $@