Skip to main content

Timeline for Help with optimizing virtual method

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Oct 23 at 19:08 comment added Christophe As far as I know, the current optimizers are already able to remove virtual calls if the type can be known. And for sure, from performance point of view, the free function with the pointer argument and a non-virtual member function will make absolutely no difference and generate almost the same code.
Oct 23 at 18:56 comment added Christophe When you say inline, you mean in reality a free aka non-member function, isn't it ? The question is then why the base class had an abstract member in the first place...
Oct 23 at 14:18 vote accept Nick
Oct 23 at 14:03 comment added Nick see my answer to the question
Oct 23 at 11:41 comment added Nick inline_f(this, args) = can you give me an example, because I do not understand what exactly you mean?
Oct 23 at 11:32 history answered gnasher729 CC BY-SA 4.0