Home > Net > The performance of a single If and multiple If difference
The performance of a single If and multiple If difference
Time:12-16
Statement 1: if(x!=1 & amp; & X!!!=2) {XXXXXX} Statement 2: if(x!=1) { if(x!=2) { XXXXXX } } Excuse me one and the performance difference between two sentences, who is big, or is the same, One thousand IF I and an IF, for example,
CodePudding user response:
If it is the same condition with the switch If more of course is slow