Having done a bunch of work on minimizing asm.js foot print, DCE is great,
but it's only good on determining stuff known at compile time. You could
have a function like:
if (localeFormat.isLTR) {
formatTextLTR();
} else {
formatTextRTL();
}
Then if you never run in an environment using RTL, you'll have the code
included, but the branch never taken.
--
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].
For more options, visit https://groups.google.com/d/optout.