arduino code works slower than arduino code generated by ldmicro

thanks for your reply westfw, ill make again with switch case and more organized