4 ms·
I'm sure there's probably a reason for doing things this way, but it seems like that code would make more sense as a function pointer table and a series of func
by InfiniteRand 5y ago
I'm sure there's probably a reason for doing things this way, but it seems like that code would make more sense as a function pointer table and a series of functions. Was that not preferred for aesthetic reasons or for some specific technical reason?
- codr7 5y agoSpeed. Your suggestion adds indirect memory access plus function call, for every instruction. I've tried every other way I can think of, and nothing runs faster from my experience.