re: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-06 Thread David Megginson
Julian Foad writes: > Well, you've improved it. You've made it print to a local buffer > in the object, so that memory is at least persistent after the call > returns. However, that buffer is already used for make_string() so > code like this: > > sprintf(dest, "%s = %s", getPath(), ge

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-02 Thread David Megginson
Norman Vine writes: [about SGPropertyNode::getPath] > >Inside the main loop, it's used only for things like interactive > >display in the property browser or through a network interface. It's > >getStringValue where the slowdowns happen (we were talking about that > >at the same time). >

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-01 Thread Norman Vine
Jim Wilson writes: > >Norman Vine <[EMAIL PROTECTED]> said: > >> but see >> FGViewMgr::update (double dt) >> > >Yes, all those should be moved to nodes in the view class. >How did this look in the last profiling run? Can't remember FWIW - I don't really trust the profiler with Cygwin as I hav

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-01 Thread Jim Wilson
Norman Vine <[EMAIL PROTECTED]> said: > but see > FGViewMgr::update (double dt) > Yes, all those should be moved to nodes in the view class. How did this look in the last profiling run? Best, Jim ___ Flightgear-devel mailing list [EMAIL PROTECTED]

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-01 Thread Norman Vine
David Megginson writes: > >Norman Vine writes: > > > as far as I am concerned creating an ASCII property path > > is a waste of time and should not be used anywhere inside > > the 'main loop'. > >Inside the main loop, it's used only for things like interactive >display in the property browser or

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-07-01 Thread David Megginson
Norman Vine writes: > as far as I am concerned creating an ASCII property path > is a waste of time and should not be used anywhere inside > the 'main loop'. Inside the main loop, it's used only for things like interactive display in the property browser or through a network interface. It's

RE: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-06-29 Thread Norman Vine
David Megginson writes: > >That's what I had thought as well, but it turned out not to be the >case. The string constructor is expensive, and we ended up using lots >(and lots and lots of them), running, as we were, 30-100 iterations >per second through hundreds of properties. Switching from str

re: [Flightgear-devel] The "string" class fights back (was: Property browser bugs)

2002-06-29 Thread David Megginson
Julian Foad writes: > These sorts of difficulties with (char *) strings, especially not > being able to pass them by value in any simple way, are the reasons > why the "string" class has come to exist. THE "STRING" CLASS IS VERY > EFFICIENT! (I'm speaking to everyone; I'm sure David already