
Hello. I'm using g++-4.4 with boost libraries and they're great. However, I have to use some image manipulation algorithms for two types of images (rgb8 and gray). I'm using it successfully, however, compilation times have increased a lot: I use apply_operation and any_image and any_image_view with two types each (rgb8 and gray8) Is there a way to decrease compile times? Thanks in advance.

Hi German,
dynamic images ( any_image ) use a lot of template metaprogramming and
this probably makes the g++ spin a lot longer. Is there a way for you
not to use dynamic images? Also can you try g++ 4.5?
Is it possible for you to send some code demonstrating the compilation effect?
Thanks,
Christian
On Mon, Mar 14, 2011 at 8:34 AM, Germán Diago
Hello. I'm using g++-4.4 with boost libraries and they're great. However, I have to use some image manipulation algorithms for two types of images (rgb8 and gray). I'm using it successfully, however, compilation times have increased a lot:
I use apply_operation and any_image and any_image_view with two types each (rgb8 and gray8) Is there a way to decrease compile times?
Thanks in advance. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

2011/3/14 Christian Henning
Hi German,
dynamic images ( any_image ) use a lot of template metaprogramming and this probably makes the g++ spin a lot longer. Is there a way for you not to use dynamic images? Also can you try g++ 4.5?
Unfortunately, with g++-4.5 there's a bug that prevents boost-1.42 combination to compile correctly. I can't change my versions of tools/libraries either, since the code is shared among several people and that would do some harm to cooperation. Maybe I could have avoided the use of any_image, but anyway, now compile time is at least acceptable.
Is it possible for you to send some code demonstrating the compilation effect?
I managed to lower the compile times quite a bit (from 10 to 2 minutes!). I just factored the common code in a common init function. Sorry, I'm not allowed to send the code. Whenever we can upgrade boost we can try g++-4.5, which should be faster as well. Thanks for your time.
participants (2)
-
Christian Henning
-
Germán Diago