Do I need to remove print lines when building?

I’m sorry if this was asked before 'cause I can’t seem to find any.

So do I need to remove ‘print’ lines when building the apk/ipa? If I don’t remove it will it affect performance?

It only affects performance significately if you are printing a lot of text in for loops etc.

You can overwrite the print function in your main.lua like this:

print = function() end

Then the print call will do nothing. It is a good idea to do that before releasing your app.

Thanks ojnab! 

It only affects performance significately if you are printing a lot of text in for loops etc.

You can overwrite the print function in your main.lua like this:

print = function() end

Then the print call will do nothing. It is a good idea to do that before releasing your app.

Thanks ojnab!