It’s a very loose approximation I made in my head.
Yes, the app inevitably gets larger as the amount of lines gets larger. (Assuming those lines contain code that does something and aren’t comments/blank.)
However, you usually have to write an absurd amount of code for it to noticeably impact total size. For PC games, it’s not a concern whatsoever (except when cache optimizing), for mobile phones it shouldn’t be a concern in 99.99% of the cases.
I can’t give a more exact approximation because I don’t know how the Lua code is translated on Android (to Java, native or just interpreted Lua bytecode), nor iOS. So I made my estimate assuming each line of code contains one assignment statement on average, and produces 4 bytes in the output memory, which is an extremely rough approximation.
I think an Ansca employee who wrote the compile system would have a much a better idea of how to set approximate limits.
So basically, don’t worry about it at all unless you for some reason will have several hundreds of thousands of LOC like the OP. It’s a fair question for him, although bets are he doesn’t have to worry either. [import]uid: 58849 topic_id: 18714 reply_id: 71979[/import]