Lua Target Bloated?

Is it normal for the Lua target to have 900+ lines for a simple test class with a trace in it? I have DCE set to full, but maybe I’m doing something wrong?

I know there should be a bit of extra boilerplate like the JS target but 900+ lines seems quite excessive.

This is currently the state of the lua target; setting dce to full is the best you can do.

Lua has a pretty minimal standard library so haxe has to implement a lot more compared to other targets, which results in larger source files generated.

There is probably room for optimising this output size but if that were to happen, it would most likely come in the form of a community contribution.

1 Like