Re: New switch/case idea
- Posted by kinz Apr 10, 2009
- 1646 views
jimcbrown said...
Sorry, doesn't count. Your test program has a for loop for the operation[i] = routine_id(opName[i]),
There are 2 tested procedures in my program:
init_opcodes() -- from EU 4.0, switching one, from compile.e init_opcodes_my() -- my version just with sequence, without any switch, simple
jimcbrown said...
but then it stupidly uses the exact same for loop with the switch inside.
Yes, but that one is switching procedure from compile.e, it is not my procedure.
Both procedures give strongly equal output.
But my procedure is 50% faster, no?
Try them once more, please.
I'm out of town again, do not be in a hurry.
kinz