
2 May
2006
2 May
'06
6:37 p.m.
Doug Gregor wrote:
On May 2, 2006, at 1:01 PM, Neal Becker wrote:
David Abrahams wrote:
Actually it's not a virtual call, it's a call through a function pointer. That's one less indirection.
Do you think a smart compiler might optimize this to a direct call?
I have yet to see a compiler smart enough to optimize this indirection.
IOW, the overhead might be *significant* for small functions that would otherwise be inlined (and insignificant for larger functions). -Thorsten