3 ms·
Sounds like something you can refactor into a N dimensional table with "function pointers" for handling each case.
by ensiferum 6y ago
Sounds like something you can refactor into a N dimensional table with "function pointers" for handling each case.
- mangamadaiyan 6y agoThat could blow your instruction cache sky high. Depending on what you're doing, that could be something you want to avoid.
- imtringued 6y agoYou don't need function pointers. Just call the functions directly. The problem isn't the switch/if, it's the complete lack of structure.