Hello!
I am writing a java program. This application will work on very slow computers too.
1) My application prints on the command line logs about what action did the user. Sometimes one action needs to write 50 lines on command line. Sometimes 2-3 lines... But these 50 lines are not inside a loop. Anyway, I am thinking to write a new method which will print on the screen the logs.
void cmd_write(String message)
{
if( cmd_output == true )
{
System.out.println(message);
}
}
I am thinking to call this method everytime when i need "printf". My application will start from command line by activating the command line output.
my_java_app.jar -cmd_output disabled
If they use my app by disabling this feature, my app will work better ( faster) ? Because it is going to call a method and it will compare two boolean values everytime. What do you think about?
2)Also, is it possible to test a program from eclipse like am working on a slow machine?
Thank you!