For LTO you also need to pass -flto during the compile step (and during
link, and you don't need `--llvm-lto 3` any more, which was for the old
backend).

If that's not it, I'd suggest comparing profiles between the builds to find
what is actually slower in your build.

On Sat, May 30, 2020 at 10:04 AM MEENA N SUBBIAH <[email protected]>
wrote:

> I am trying to compile the libvpx module to wasm.
> But I am facing huge performance issues.
>
> The wasm I build takes an average encode time of 1300+ milliseconds.
> But I found another livpx.wasm
> https://github.com/webrtc/apprtc/tree/wartc/src/web_app/wasm/libvpx which
> takes average encode time of 250+ milliseconds.
> Can anyone help me, Where am I going wrong.
>
> here are the compilation setting I use,
>
> to build *libvpx,*
>
>
> *emconfigure ../node_modules/libvpx/configure --enable-postproc
> --enable-multi-res-encoding --enable-temporal-denoising --enable-libyuv
> --size-limit=16384x16384 --enable-multithread --enable-realtime-only
> --disable-install-docs --disable-unit-tests --disable-vp9-decoder
> --disable-vp9-encoder --target=generic-gnu --extra-cxxflags="-O3 -s WASM=1
> -DWASM -I`dirname \`which emcc\``/system/lib/libcxxabi/include"*
> *emmake make*
>
> to build *libyuv,*
>
>
> *emcmake cmake -DCMAKE_BUILD_TYPE=Release ../node_modules/libyuvemmake
> make*
>
> *Final compilation,*
>
>
> *emcc -O3 -DWASM --bind -s STRICT=1 -s ALLOW_MEMORY_GROWTH=1 -s
> ASSERTIONS=0 -s NO_EXIT_RUNTIME=1 -s MALLOC=emmalloc -s MODULARIZE=1 -s
> FILESYSTEM=0 -s EXPORT_ES6=1 --std=c++11 -o ./my-module.js -x c++ -I
> ./node_modules/libvpx -I ./node_modules/libyuv/include -I build-vpx
> src/zcon_ss.cpp src/Utility/ZvpxCodecInst.cpp src/Utility/zvpx_encoder.cpp
> src/Utility/zvpx_decoder.cpp build-vpx/libvpx.a build-yuv/libyuv.a
> --no-entry --closure 0 --llvm-lto 3 -g0*
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/e47d2054-9a4a-4cc5-86f9-bf0072f55258%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/e47d2054-9a4a-4cc5-86f9-bf0072f55258%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpS0LMQvT0JfSZGroSuNNH198V0hgfm56pDBwLPU8SWTwg%40mail.gmail.com.

Reply via email to