On Thu, 2010-09-16 at 08:59 +0200, Anders Gidenstam wrote:
> I think a bigger issue might be that both getChild() and getNode() 
> create and return a hash object that is only used once here before 
> becoming garbage. Since this was loop with many iterations a good deal of
> garbage was created so possibly a significant amount of the time was spent 
> in the garbage collector. OTOH the string handling also ought to generate 
> garbage but the short strings are probably smaller than the hash objects.

No doubt that Nasal can be optimized in certain parts put parsing
"/path/to/some/property[5]/in/the/tree" to getprop/setprop will result
in one call to a C++ function that walks the property tree and returns
the result to Nasal.

Erik


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to