Switch statement

This works well.

There’s one more case to consider:

Case

This should skip everything that’s just not there. No comparison involved at all here.

$ tic here_is_a_case zzzzzzzzzzzzz toc # Other tests shows .001-.002 s. This one varies from .002 s to .006 s.
here_is_a_case:
$1=1
if $a 0
elif $b 0
elif $c 0
elif $d 0
elif $e 0
elif $f 0
elif $g 0
elif $h 0
elif $i 0
elif $j 0
elif $k 0
elif $l 0
elif $m 0
elif $n 0
elif $o 0
elif $p 0
elif $q 0
elif $r 0
elif $s 0
elif $t 0
elif $u 0
elif $v 0
elif $w 0
elif $x 0
elif $y 0
elif $z 0
elif $aa 0
elif $bb 0
elif $cc 0
elif $dd 0
elif $ee 0
elif $ff 0
elif $gg 0
elif $hh 0
elif $ii 0
elif $jj 0
elif $kk 0
elif $ll 0
elif $mm 0
elif $nn 0
elif $oo 0
elif $pp 0
elif $qq 0
elif $rr 0
elif $ss 0
elif $tt 0
elif $uu 0
elif $vv 0
elif $ww 0
elif $xx 0
elif $yy 0
elif $zz 0
elif $aaa 0
elif $bbb 0
elif $ccc 0
elif $ddd 0
elif $eee 0
elif $fff 0
elif $ggg 0
elif $hhh 0
elif $iii 0
elif $jjj 0
elif $kkk 0
elif $lll 0
elif $mmm 0
elif $nnn 0
elif $ooo 0
elif $ppp 0
elif $qqq 0
elif $rrr 0
elif $sss 0
elif $ttt 0
elif $uuu 0
elif $vvv 0
elif $www 0
elif $xxx 0
elif $yyy 0
elif $zzz 0
elif $aaaa 0
elif $bbbb 0
elif $cccc 0
elif $dddd 0
elif $eeee 0
elif $ffff 0
elif $gggg 0
elif $hhhh 0
elif $iiii 0
elif $jjjj 0
elif $kkkk 0
elif $llll 0
elif $mmmm 0
elif $nnnn 0
elif $oooo 0
elif $pppp 0
elif $qqqq 0
elif $rrrr 0
elif $ssss 0
elif $tttt 0
elif $uuuu 0
elif $vvvv 0
elif $wwww 0
elif $xxxx 0
elif $yyyy 0
elif $zzzz 0
elif $aaaaa 0
elif $bbbbb 0
elif $ccccc 0
elif $ddddd 0
elif $eeeee 0
elif $fffff 0
elif $ggggg 0
elif $hhhhh 0
elif $iiiii 0
elif $jjjjj 0
elif $kkkkk 0
elif $lllll 0
elif $mmmmm 0
elif $nnnnn 0
elif $ooooo 0
elif $ppppp 0
elif $qqqqq 0
elif $rrrrr 0
elif $sssss 0
elif $ttttt 0
elif $uuuuu 0
elif $vvvvv 0
elif $wwwww 0
elif $xxxxx 0
elif $yyyyy 0
elif $zzzzz 0
elif $aaaaaa 0
elif $bbbbbb 0
elif $cccccc 0
elif $dddddd 0
elif $eeeeee 0
elif $ffffff 0
elif $gggggg 0
elif $hhhhhh 0
elif $iiiiii 0
elif $jjjjjj 0
elif $kkkkkk 0
elif $llllll 0
elif $mmmmmm 0
elif $nnnnnn 0
elif $oooooo 0
elif $pppppp 0
elif $qqqqqq 0
elif $rrrrrr 0
elif $ssssss 0
elif $tttttt 0
elif $uuuuuu 0
elif $vvvvvv 0
elif $wwwwww 0
elif $xxxxxx 0
elif $yyyyyy 0
elif $zzzzzz 0
elif $aaaaaaa 0
elif $bbbbbbb 0
elif $ccccccc 0
elif $ddddddd 0
elif $eeeeeee 0
elif $fffffff 0
elif $ggggggg 0
elif $hhhhhhh 0
elif $iiiiiii 0
elif $jjjjjjj 0
elif $kkkkkkk 0
elif $lllllll 0
elif $mmmmmmm 0
elif $nnnnnnn 0
elif $ooooooo 0
elif $ppppppp 0
elif $qqqqqqq 0
elif $rrrrrrr 0
elif $sssssss 0
elif $ttttttt 0
elif $uuuuuuu 0
elif $vvvvvvv 0
elif $wwwwwww 0
elif $xxxxxxx 0
elif $yyyyyyy 0
elif $zzzzzzz 0
elif $aaaaaaaa 0
elif $bbbbbbbb 0
elif $cccccccc 0
elif $dddddddd 0
elif $eeeeeeee 0
elif $ffffffff 0
elif $gggggggg 0
elif $hhhhhhhh 0
elif $iiiiiiii 0
elif $jjjjjjjj 0
elif $kkkkkkkk 0
elif $llllllll 0
elif $mmmmmmmm 0
elif $nnnnnnnn 0
elif $oooooooo 0
elif $pppppppp 0
elif $qqqqqqqq 0
elif $rrrrrrrr 0
elif $ssssssss 0
elif $tttttttt 0
elif $uuuuuuuu 0
elif $vvvvvvvv 0
elif $wwwwwwww 0
elif $xxxxxxxx 0
elif $yyyyyyyy 0
elif $zzzzzzzz 0
elif $aaaaaaaaa 0
elif $bbbbbbbbb 0
elif $ccccccccc 0
elif $ddddddddd 0
elif $eeeeeeeee 0
elif $fffffffff 0
elif $ggggggggg 0
elif $hhhhhhhhh 0
elif $iiiiiiiii 0
elif $jjjjjjjjj 0
elif $kkkkkkkkk 0
elif $lllllllll 0
elif $mmmmmmmmm 0
elif $nnnnnnnnn 0
elif $ooooooooo 0
elif $ppppppppp 0
elif $qqqqqqqqq 0
elif $rrrrrrrrr 0
elif $sssssssss 0
elif $ttttttttt 0
elif $uuuuuuuuu 0
elif $vvvvvvvvv 0
elif $wwwwwwwww 0
elif $xxxxxxxxx 0
elif $yyyyyyyyy 0
elif $zzzzzzzzz 0
elif $aaaaaaaaaa 0
elif $bbbbbbbbbb 0
elif $cccccccccc 0
elif $dddddddddd 0
elif $eeeeeeeeee 0
elif $ffffffffff 0
elif $gggggggggg 0
elif $hhhhhhhhhh 0
elif $iiiiiiiiii 0
elif $jjjjjjjjjj 0
elif $kkkkkkkkkk 0
elif $llllllllll 0
elif $mmmmmmmmmm 0
elif $nnnnnnnnnn 0
elif $oooooooooo 0
elif $pppppppppp 0
elif $qqqqqqqqqq 0
elif $rrrrrrrrrr 0
elif $ssssssssss 0
elif $tttttttttt 0
elif $uuuuuuuuuu 0
elif $vvvvvvvvvv 0
elif $wwwwwwwwww 0
elif $xxxxxxxxxx 0
elif $yyyyyyyyyy 0
elif $zzzzzzzzzz 0
elif $aaaaaaaaaaa 0
elif $bbbbbbbbbbb 0
elif $ccccccccccc 0
elif $ddddddddddd 0
elif $eeeeeeeeeee 0
elif $fffffffffff 0
elif $ggggggggggg 0
elif $hhhhhhhhhhh 0
elif $iiiiiiiiiii 0
elif $jjjjjjjjjjj 0
elif $kkkkkkkkkkk 0
elif $lllllllllll 0
elif $mmmmmmmmmmm 0
elif $nnnnnnnnnnn 0
elif $ooooooooooo 0
elif $ppppppppppp 0
elif $qqqqqqqqqqq 0
elif $rrrrrrrrrrr 0
elif $sssssssssss 0
elif $ttttttttttt 0
elif $uuuuuuuuuuu 0
elif $vvvvvvvvvvv 0
elif $wwwwwwwwwww 0
elif $xxxxxxxxxxx 0
elif $yyyyyyyyyyy 0
elif $zzzzzzzzzzz 0
elif $aaaaaaaaaaaa 0
elif $bbbbbbbbbbbb 0
elif $cccccccccccc 0
elif $dddddddddddd 0
elif $eeeeeeeeeeee 0
elif $ffffffffffff 0
elif $gggggggggggg 0
elif $hhhhhhhhhhhh 0
elif $iiiiiiiiiiii 0
elif $jjjjjjjjjjjj 0
elif $kkkkkkkkkkkk 0
elif $llllllllllll 0
elif $mmmmmmmmmmmm 0
elif $nnnnnnnnnnnn 0
elif $oooooooooooo 0
elif $pppppppppppp 0
elif $qqqqqqqqqqqq 0
elif $rrrrrrrrrrrr 0
elif $ssssssssssss 0
elif $tttttttttttt 0
elif $uuuuuuuuuuuu 0
elif $vvvvvvvvvvvv 0
elif $wwwwwwwwwwww 0
elif $xxxxxxxxxxxx 0
elif $yyyyyyyyyyyy 0
elif $zzzzzzzzzzzz 0
elif $aaaaaaaaaaaaa 0
elif $bbbbbbbbbbbbb 0
elif $ccccccccccccc 0
elif $ddddddddddddd 0
elif $eeeeeeeeeeeee 0
elif $fffffffffffff 0
elif $ggggggggggggg 0
elif $hhhhhhhhhhhhh 0
elif $iiiiiiiiiiiii 0
elif $jjjjjjjjjjjjj 0
elif $kkkkkkkkkkkkk 0
elif $lllllllllllll 0
elif $mmmmmmmmmmmmm 0
elif $nnnnnnnnnnnnn 0
elif $ooooooooooooo 0
elif $ppppppppppppp 0
elif $qqqqqqqqqqqqq 0
elif $rrrrrrrrrrrrr 0
elif $sssssssssssss 0
elif $ttttttttttttt 0
elif $uuuuuuuuuuuuu 0
elif $vvvvvvvvvvvvv 0
elif $wwwwwwwwwwwww 0
elif $xxxxxxxxxxxxx 0
elif $yyyyyyyyyyyyy 0
elif $zzzzzzzzzzzzz 0
fi
rm.
  • [core-321] Optimize evaluation of empty boolean expressions (commit).