ofir_aghai
ofir_aghai

Reputation: 3321

Speed-up application by remove code for writing logs?

I am trying to speed-up my application. Will it make my app significantly faster if I remove all the logs-code? Does it make a difference ?

My app writes lots of logs.

Log.v(TAG, "example android log");

I read this question, but it doesnt answer my question.

Upvotes: 1

Views: 216

Answers (2)

AniV
AniV

Reputation: 4037

Depends on the functionalities of you Glass app. If your glass app is just a slideshow there are different aspects that needs to be taken care of than a Media Streaming app. Offcourse, reducing the number of log statements would help a bit in the performance but there are other significant points that should be taken into consideration.

Please refer to this official Google Document for more detail information.

Upvotes: 0

Simon Marquis
Simon Marquis

Reputation: 7526

No, it won't make any visible improvements on your perfs.

Unless you're doing really bad things such as:

  • Non-stop logging (100x every frame)
  • String concatenations
  • toString() method calls
  • any object allocation

Maybe you could share some snippets of your logging code to see if there is anything wrong.

Upvotes: 2

Related Questions