ID:265168
 
I was told that coding in one line, instead of tree format... Is more efficent and better on lag because it doesn't have to process lines of code, instead it just does one line. Is this true?
Jon Snow wrote:
I was told that coding in one line, instead of tree format... Is more efficent and better on lag because it doesn't have to process lines of code, instead it just does one line. Is this true?

Whoever told you that is absolutely clueless.
The only place the format of your code would make a difference is in the compiler. Whether the compiler has an easier time with one format or another I don't know, but I'd guess the tree format is easier since there's no need to search for a closing brace.

There are two types of lag; CPU lag and network lag. CPU lag isn't actually "lag" as such, so much as a slowdown. Network lag is when your hosting connection (or a client connection) is bottlenecked and not enough data gets through to update properly. CPU slowdowns can be caused by inefficient code, but the format of the code is irrelevant to that.

Lummox JR