ice icon indicating copy to clipboard operation
ice copied to clipboard

Use switch(string) for operation dispatch in Java and C#

Open bernardnormier opened this issue 5 years ago • 0 comments

Ice currently performs a search for the operation name like in C++, and then a switch on the position of this string. It could and should use instead a plain switch on the operation name string, and allow the compiler to optimize the switch.

See for example: https://github.com/zeroc-ice/ice/blob/3.7/java/src/Ice/src/main/java/com/zeroc/Ice/Object.java#L154

bernardnormier avatar Mar 28 '19 20:03 bernardnormier