--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/cca83aa0-c022-4a94-8cc6-42063b5ccebc%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpREWRPRu1M%3DEx2t%2BQXkt7pQ64sgFC%2BaGU6h_H5vbX9ocA%40mail.gmail.com.
If you built binaryen by yourself, I'd make sure that's not a debug build.
Another thing is to check you don't set BINARYEN_CORES=1 in the environment (which would prevent an almost linear speedup with more cores).
And in a very big project perhaps it takes enough memory to cause swapping, so checking peak memory usage etc. might be interesting.
If those aren't it, I'd run it in a profiler to see what's taking so long. If you can share the file I can take a look too.
I recently tracing channels to binaryen and some minimal tracing to `wasm-emscripten-finalize`. You might be able to get some clues from adding `--debug=emscripten` to the command line.
[PassRunner] running passes...
[PassRunner] running pass: legalize-js-interface... 863.403 seconds.
[PassRunner] (validating)
[PassRunner] passes took 863.403 seconds.
[PassRunner] (final validation)
You received this message because you are subscribed to a topic in the Google Groups "emscripten-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emscripten-discuss/Tj7C5Ij4sx8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28KeT9VfF45%3D%3DAEmVSML79uB9L%2B%2BWJV6EG6%3DL3NoGtvjg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CANMzfzh6oQ6656xYf-C7T7eo5Es57TsnkkrNzFiJx64%3Dcx4whA%40mail.gmail.com.
anyhow, if you share the binary I can investigate, should be easy to narrow something that noticeable down ;)
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTqGBC4eJGJE4hrCCY_k4pA%3D4nXtBxGemSYqKQw_juGoQ%40mail.gmail.com.
> [PassRunner] running pass: legalize-js-interface... 863.403 seconds.> I wonder if that's an error in the measurement, otherwise, that's very surprising, I don't remember any non-linear algorithms there...It is NOT an error in measurement, it really takes that long. I've been profiling using Instruments on my Mac and from what I see most of the time is spent here:Specifically modifying the `unordered_map`.If I understand the code correctly, this basically means we have a *ton* of functions that we're trying to export and therefor have to "legalize"? Is it possible that we just have our project a little misconfigured and instead of only exporting methods with Embind everything is exported? I couldn't explain why the unordered_map would be used for 15 minutes(!) otherwise.anyhow, if you share the binary I can investigate, should be easy to narrow something that noticeable down ;)Would you mind if I send it to you personally instead of to the mailing list? If you think it is even necessary anymore seeing the above statement.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CANMzfzieX98ksvWvCQcD9StwOA95bjy7mkZ5kUvweZyvok71XQ%40mail.gmail.com.
On Jan 22, 2020, at 5:56 PM, Alon Zakai <alon...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpTE3GfoebGiKutkQEhT5cPkFAK4ohvJLHK-HdkffnZCwA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/8109E6E4-DBDE-420E-B3A8-276FD3DE8A2A%40pspdfkit.com.