
13 Feb
2009
13 Feb
'09
10:49 a.m.
Gokulakannan Somasundaram wrote:
I got even better results for switch with Visual Studio, but on Linux gcc 4.3.2, i am getting almost equal values for both. But we can say for sure that Boost Variant is not as fast as the direct function call. . That's why i am requesting a feature to allow limited functionality of templates inside the virtual functions.
Well you can't do dynamic dispatch any faster than with a switch.