What would make a virtual call faster than regular one

46 views Asked by At

I know virtual calls are generally longer than regular calls, mostly because you have to check the VTable before any virtual call. However, lately I had a case (on a huge project) where removing the word "virtual" from a method actually slowed down the execution. So I was wondering if you guys think at any case where using a virtual call would be faster than using a regular call.

0

There are 0 answers