Archived

This topic is now archived and is closed to further replies.

abdulla

virtual overhead

Recommended Posts

abdulla    164
does anyone know how much of a relative performance hit (relative to a normal function call) a virtual call takes in VC on a WinNT 5+ platform (fully 32bit) also after the function is found on the vtable and the amiguity for a class is resolved, do you still incur the performance hit everytime you call the function?

Share this post


Link to post
Share on other sites
Stoffel    250
quote:
Original post by abdulla
does anyone know how much of a relative performance hit (relative to a normal function call) a virtual call takes in VC on a WinNT 5+ platform (fully 32bit)


One extra pointer dereference per call.

quote:

also after the function is found on the vtable and the amiguity for a class is resolved, do you still incur the performance hit everytime you call the function?

Yes.

Share this post


Link to post
Share on other sites