pull down to refresh
0 sats \ 0 replies \ @0xbitcoiner OP 12 Feb \ parent \ on: Programmer’s paranoia or obsession with performance? bitdevs
I agree that the if-else performs better than the switch inside the for loop.
The recommendation you suggested:
can't be used because the Encode_Command function could be executed multiple times depending on TypeMsgToSend_ui16. This shouldn't happen, as Encode_Command should only be called once each time this section of code is executed, which is why the if-else approach is needed.