better optimize wasm/js version
`-Os` is extremely slow, while `-O3` is pretty speedy.
This commit is contained in:
parent
1fc25071ae
commit
7a56665300
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -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 > $@
|
||||
|
|
|
|||
Loading…
Reference in a new issue