I am working on a project which requires some pretty intricate Javascript processing. This includes a lot of nested if-elses in quite a few places. I have generally taken care to optimise Javascript as much as possible by reading the other tips in SO, but I am wondering if the following two constructs would make any difference in terms of speed alone:
if(some_condition) {
// process
return ;
}
// continue the else condition here
VS
if(some_condition) {
// process
}
else {
// the else condition...
}