3 ms·
Because the lua code moonsript emits is inherently slower.
by killin_dan 9y ago
Because the lua code moonsript emits is inherently slower.
- tiffanyh 9y ago>> "inherently slower" What's "inherent" in moonscript that makes it slower?
- meowface 9y agoNot necessarily. Like CoffeeScript, it depends on what features you use.
- leafo 9y agoNot really, the code mapping is very straightforward and generally has no performance degradation. There are some language constructs that are implemented in a way that can create anonymous functions in order to convert statements into expressions. Future versions of MoonScript can do a better job to eliminate those. If you're aware when they're generated you can avoid them by writing as you might do in Lua. Realistically though, the performance difference is negligible in comparison to all the other things that might happen in your average web request.