Re: Speed impact of virtual inheritance

2005-10-11 Thread Mike Stump
On Oct 10, 2005, at 2:25 PM, Frans Englich wrote: What makes me ask these questions, is that I have code which (according to my opinion) severely needs virtual inheritance(VI). The code VI would affect is not under my veto power, and the maintainers of that code have so far given as comment

Re: Speed impact of virtual inheritance

2005-10-10 Thread Jonathan Wakely
Frans Englich wrote: In a large project I'm participating in, a design dilemma have arrived. Adding virtual inheritance would solve it beautifully on the source code level, but a potential drawback is the speed penalty it brings. Measurement is always the way of approaching performance

Re: Speed impact of virtual inheritance

2005-10-10 Thread Frans Englich
On Monday 10 October 2005 16:12, Jonathan Wakely wrote: Frans Englich wrote: In a large project I'm participating in, a design dilemma have arrived. Adding virtual inheritance would solve it beautifully on the source code level, but a potential drawback is the speed penalty it brings.

Re: Speed impact of virtual inheritance

2005-10-10 Thread Mark Mitchell
Frans Englich wrote: Hello all, In a large project I'm participating in, a design dilemma have arrived. Adding virtual inheritance would solve it beautifully on the source code level, but a potential drawback is the speed penalty it brings. Measurement is always the way of approaching

Re: Speed impact of virtual inheritance

2005-10-10 Thread Frans Englich
On Monday 10 October 2005 18:53, Mark Mitchell wrote: Frans Englich wrote: Hello all, In a large project I'm participating in, a design dilemma have arrived. Adding virtual inheritance would solve it beautifully on the source code level, but a potential drawback is the speed penalty it

Re: Speed impact of virtual inheritance

2005-10-10 Thread Joe Buck
On Mon, Oct 10, 2005 at 09:25:15PM +, Frans Englich wrote: Followup question: what is the increased cost of calling a non-virtual, inlined function('inline' keyword) on a virtual base? If the function is successfully inlined, then the question really refers to the cost of the code inside

Re: Speed impact of virtual inheritance

2005-10-10 Thread Mark Mitchell
Frans Englich wrote: Followup question: what is the increased cost of calling a non-virtual, inlined function('inline' keyword) on a virtual base? None, if the function is inlined -- and whether it is inlined or not should not be affected by whether or not it is in a virtual base. What

Re: Speed impact of virtual inheritance

2005-10-10 Thread Frans Englich
On Monday 10 October 2005 22:29, Mark Mitchell wrote: Frans Englich wrote: Followup question: what is the increased cost of calling a non-virtual, inlined function('inline' keyword) on a virtual base? None, if the function is inlined -- and whether it is inlined or not should not be

Re: Speed impact of virtual inheritance

2005-10-10 Thread Mark Mitchell
Frans Englich wrote: On Monday 10 October 2005 22:29, Mark Mitchell wrote: Frans Englich wrote: Followup question: what is the increased cost of calling a non-virtual, inlined function('inline' keyword) on a virtual base? None, if the function is inlined -- and whether it is inlined or not

Thanks [was Re: Speed impact of virtual inheritance]

2005-10-10 Thread Frans Englich
On Monday 10 October 2005 15:21, Frans Englich wrote: Hello all, In a large project I'm participating in, a design dilemma have arrived. Adding virtual inheritance would solve it beautifully on the source code level, but a potential drawback is the speed penalty it brings. Measurement is