Re: performance...

New Message Reply Date view Thread view Subject view Author view

Swapnil Sha (swapnil++at++teil.soft.net)
Sat, 17 May 1997 14:00:39 -0530 (IST)


Hi,
It's true that it's inline function, but this is just a small example i
wanted to ask about. In general i have big object having lot many data
member. And member functions are not inline. This inline thing is related to
C++ performance and not to performer engine.

What i wanted to know is, does performance gets affected by this type of
scene graph, while traveling through it???

-swapnil

According to Steve Baker:
>
> > What can be the performance issue for the following two :
> >
> > ----------- one ------------
> > f()
> > {
> > pfDCS *dcs = new pfDCS;
> > dcs->setRot(h, p, r);
> > }
> >
> > ---------- two ------------
> >
> > class Car : public pfDCS
> > {
> > public :
> > Car():pfDCS()
> > {}
> >
> > void setRotation(float h, float p, float r)
> > {
> > setRot(h,p,r);
> > }
> > }
> >
> > f()
> > {
> > Car *car = new Car;
> >
> > car->setRotation(....);
> > }
> >
>
> Since setRotation is inline, I'd expect the compiler to generate
> identical machine code in the two cases - so there should be no
> difference in performance.
>
>
> Steve Baker 817-619-1361 (Vox-Lab)
> Hughes Training Inc. 817-619-8776 (Vox-Office/Vox-Mail)
> 2200 Arlington Downs Road 817-619-4028 (Fax)
> Arlington, Texas. TX 76005-6171 Steve++at++MrEd.bgm.link.com (eMail)
> http://www.hti.com (external) http://MrEd.bgm.link.com/staff/steve (intranet)
> http://web2.airmail.net/sjbaker1 (external)
>
> ** Beware of Geeks bearing GIF's. **
>
>

***************************************************************************
    swapnil++at++teil.soft.net http://www.teil.soft.net/~swapnil
                 swapnil++at++pfindy.teil.soft.net
                       swapn++at++hotmail.com
***************************************************************************
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:15 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.