#builtin.returnError() is really slow while targeting Emscripten

1 messages · Page 1 of 1 (latest)

merry cove
#

Profiling graph in browser shows @returnAddress took a lot of time each frame. Even with ReleaseFast optimize enabled.

#

My question is, is it possible to disable this thing? jsStackTrace() from Emscripten is pretty slow which I think is the reason.

patent sphinx
#

-fno-error-tracing or .error_tracing = false,

merry cove
#

Thanks for the quick reply, is this a zig only option?

#

I added .error_tracing = false to my build, but can still see jsStackTrace() from profiling

#

I build my app as a static library, and then use emcc to link and produce js/wasm.

#

Wow, a lot less jsStackTrace() after the config. The only fews left come from ArenaAllocator. Which is not so annoying any more.