Re: [pygccxml-development] Any recent commits that may affect performance
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-02-17 18:06:44
|
On 2/16/07, Allen Bierbaum <al...@vr...> wrote: > > >>> I agree. When I saw that it surprised me. Is there anything you can > >>> think of that may have changed in the past several months that would > >>> increase the number of times that the full_name code is being called? > >>> In other words, is there a new algorithm in the code that needs to be > >>> made smarter to increase performance? > >>> > > > > Can you do me a favor: > > pygccxml.declarations.declaration_t. > > _get_name function implemented as > > > > > > def _get_name( self ): > > > > return self._get_name_impl() > > > > > > can you change the implementation to "return self._name" and to run this under > > profiler? I expect this change to increase performance. > > > That increased performance by about 5%. So a small speedup, but not a > significant speedup. Any other ideas? I thought about it and I don't know. May be you are doing something wrong. Python-Ogre project is not a smallest one, but it takes only 5 minutes( without cache and files ) to generate code. During code generation they also parse Ogre source tree to extract documentation. Can you show your script? -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |