Hi. I made some changes to Py++, which allows better control and code
generation of code related to include directives:
1. System ( Py++, boost.python ) header files is only included if
needed/used. From now, Py++ defined header files will be only included from
files that need them.
2. I added new feature which allows user to specify additional include files
for file in which relevant declaration generated code will be
placed in:
mb = module_builder_t( ... )
my_class = mb.class_( ... )
my_class.include_files.append( "vector" )
File "vector" will be included only from file, where "my_class" will be
generated.
Both this feature can and will drop compilation the compilation time. They
also allow to tweak generated code in a such way that only really "changed"
code will compile. I mean if some class in exposed project was changed, than
only single file ( the class wrapper ) will be compiled.
I also made few really simple optimization while working on this feature. On
my project I've got something like 8-9% of speed improvement. ( The time
dropped from 6 minutes to 5.20 ).
This is a last feature for this release. I begin to work on documentation.
Please try latest SVN sources and report any problem you has.
Thanks.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|