Please learn the setting mode for reconstruction issues
For log issues, it is generally recommended to log in key places. As for too many logs affecting performance, a very simple way is to set a switch:
if (ENABLE_LOG){
log(TAG, something);
}
ENABLE_LOG is set to true in the development version and to false in the release version, so that the log can be used without affecting performance in the official version.
Looking at some design patterns will help
There is a good book about refactoring, step by step,
The principle is: Refactoring should be considered only when development efficiency or operating efficiency encounters a bottleneck
Please learn the setting mode for reconstruction issues
For log issues, it is generally recommended to log in key places. As for too many logs affecting performance, a very simple way is to set a switch:
ENABLE_LOG is set to true in the development version and to false in the release version, so that the log can be used without affecting performance in the official version.