code performance


(-IronMonkey-) #1

i always had a doubt …
lock code lines (ie: //bla bla bla) or totally remove them, will result on better performance?

probably a silly question but i wish to clarify this into my mind
mainly cause i usually keep old code locked, instead removing it, once i modify something

thx guys


(IndyJones) #2

i think it doesn’t have any noticable impact, as long the code is not executed… but on the other hand, i’m not a programmer.


(Nail) #3

// means it doesn’t get read, performance should be the same for both instances


(Paul) #4

// won’t be included in binaries, compiler will ignore them, so there won’t be any difference without them


(-IronMonkey-) #5

ok thanks everybody :wink:


(CoD4Fun) #6

jep. just imagine the compiler and what he does. those lines are no real code anyway and wont be included in any way. whereas in a scripting language such as the et mapscripting language it could have an impact, as there is an interpreter working.


(-IronMonkey-) #7

ok …
nice to learn this point about “compiler” and “interpreter”