OONumerics User :

From: Paul Beardsley (pab_at_[hidden])
Date: 2006-03-27 12:49:29


Also have you verified that the slow performance is due to the virtual
function call? In general, this is not an area that you can target and
expect to get big gains. You said that your program is 'very slow'.
If you want to speed it up by an order of magnitude, you probably won't
be in luck just attacking the virtual function call,

Paul.

Simon Perreault wrote:
> On Sunday 26 March 2006 22:53, Hari Sundar wrote:
>
>> Do people have any experience with this kind of stuff ? what would be the
>> best way to do something like this ... where the data is stored within the
>> parent class and the derived classes are mainly providing different
>> functions that process this data differently.
>>
>
> Can't you just use the Barton-Nackman trick? Make the data protected in the
> parent so that the children can access it. Or am I missing something?
> _______________________________________________
> oon-list mailing list
> oon-list_at_[hidden]
> http://www.oonumerics.org/mailman/listinfo.cgi/oon-list
>

-- 
Paul Beardsley, Senior Research Scientist
MERL, 201 Broadway, Cambridge, MA 02139, USA
tel: +(617) 621 7569  
fax: +(617) 621 7550