[Flightgear-devel] Re: [PATCH] cleanup of FlighGear and SimGear

2005-10-25 Thread Alex Romosan
Vassilii Khachaturov [EMAIL PROTECTED] writes: http://caliban.lbl.gov/fgfs_patches/flightgear.diff Great work. I wonder if there is a way to profile fg/sg for this kind of inefficiencies somewhere in a tight loop. A couple of comments: diff -u -r1.43 AIBase.hxx ---

Re: [Flightgear-devel] Re: [PATCH] cleanup of FlighGear and SimGear

2005-10-25 Thread Frederic Bouvier
Alex Romosan a écrit : this change is okay. i am not sure what you mean by marking the method to be const but if it's this: inline const Point3D GetPos() const that would mean it acts on a const object which is what we want anyway (but not necessarily). so can we apply this patch as well:

Re: [Flightgear-devel] Re: [PATCH] cleanup of FlighGear and SimGear

2005-10-25 Thread Mathias Fröhlich
On Dienstag 25 Oktober 2005 21:33, Frederic Bouvier wrote: I am not a big fan of functions that return pointers or references on their current state. That leads to mysterious errors when the object goes out of scope before the pointer or the reference. I think this kind of optimisation is very