mercredi 17 mars 2021

Is the execution speed slowed by negation in an if statement?

if (!IsPresent(command)) {
    String[] commandsIndividual = command.split(" vs ");
} else {
if (IsPresent(command)) {
    String[] commandsIndividual = command.split(" vs ");
} else {

Does the logical negation of the statement reduce the execution speed?

Aucun commentaire:

Enregistrer un commentaire