Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu