-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bogus warning 'Output contains some very large functions' #20811
Comments
This may be a result of using Still, the combination of these 2 issues makes it impossible to build libopenmpt without any warning with emscripten, and there is absolutely nothing in libopenmpt that I can do to avoid it. Emscripten currently fails our CI, and I am considering blacklisting compiling with 3.1.50. |
Building with |
4 years ago, commit 49d7717 removed OUTLINING_LIMIT which was the only actionable item a user could do to avoid this warning. Suggesting to compile with -Oz when the user is already compiling with -Oz is just supidly insulting and not contructive user feedback. It is not Emscripten's job to have opinions about the size of functions. Fixes <emscripten-core#20811>.
4 years ago, commit 49d7717 removed OUTLINING_LIMIT which was the only actionable item a user could do to avoid this warning. Suggesting to compile with -Oz when the user is already compiling with -Oz is just stupidly insulting and not contructive user feedback. It is not Emscripten's job to have opinions about the size of functions. Fixes <emscripten-core#20811>.
4 years ago, commit 49d7717 removed OUTLINING_LIMIT which was the only actionable item a user could do to avoid this warning. Suggesting to compile with -Oz when the user is already compiling with -Oz is just stupidly insulting and not constructive user feedback. It is not Emscripten's job to have opinions about the size of functions. Fixes <emscripten-core#20811>.
Quick question: Are you seeing this warning when building with @kripken do you know of any reason why such large JS function might be problem for wasm2js users these days? |
I get this warning with
Even if this causes some kind of obscure performance problem for some JS engine, a warning that the user cannot do anything about must not exist. |
Fair enough, I'm just trying to gather all the background information on this warning. |
I think historically this was a major performance problem, but likely not today, and also far less important given wasm, anyhow. I agree this can be removed. |
Users have little they can do if they see this warning, and we were showing it even if the user built in the modes that the message suggest they use. in addition, this warning is likely not important these days given the huge improvements in JS VMs over the years. Fixes #20811
Receiving the warning
warning: Output contains some very large functions (5116 lines in vY), consider building source files with -Os or -Oz)
is rather pointless when I am already compiling with-Oz
. If emscripten thinks functions are too big (for whatever reason), it is its job to make them smaller instead of complaining to the user without providing any way to suppress the warning.Big functions are fine - they do exist. Emscripten should frankly just shut up in this case.
The text was updated successfully, but these errors were encountered: