Removing print lines from code

I have the strangest question I came up with today, since I will be sending a request soon. My question is whether to remove all lines from the code print(""). Does it somehow affect the performance of the application or something like that?

+4
source share
3 answers

Yes, you must delete them. Although the impact of performance may be minimal, it still exists.

As Marco noted, the biggest problem is that you make all of these printstatements publicly available.

Apple statement :

, . , ( ).

+1

, , , .

, , , Here, Inside .., .

+1

You must be sure to get rid of all print applications before production. This is an I / O operation that definitely affects performance, the main thread will wait until printing (the I / O operation is complete). You might want to convert some debug level printing to a log.

Here is another thread that talks about it.

+1
source

Source: https://habr.com/ru/post/1653047/


All Articles