Re: [pygccxml-development] Parsing a single header file for the whole project
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2010-04-01 16:27:30
|
2010/4/1 Benoît Leveau <ben...@gm...>: > Hi all, Good evening. > There's something that's driving me mad, and I'm sure it's really > basic or simple to fix. > I have a big project to bind and parsing all the files takes a lot of > time, and finally hit the 8GB point at which I prefer to kill the > process. Take a look on "pygccxml.parser.project_reader.create_cached_source_fc(header, cached_source_file)" function ( http://language-binding.net/pygccxml/apidocs/parser.html ) It will allow you to save gccxml compilation time. If you can send me( privatly ) gccxml generated file, I can try to improve py++/pygccxml performance. > In the "Best practices" page, it is suggested to "Create one header > file, which will include all project header files." pygccxml is able to merge results from different gccxml invocation, but from my experience it will take more time and memory. Did you include all your projects in that file or a single one? Ogre 3D engine is pretty big project, but even it doesn't consumes so much memory. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |